Archive for the ‘git’ Category

How to create and apply a patch with Git

October 26th, 2009

Git is quite common nowadays and a lot of people are asking me how they can create a patch file. Creating a patch file with git is quite easy to do, you just need to see how it’s done a few times.

This article will show you how to create a patch from the last few commits in your repository. Next, I’ll also show you how you can correctly apply this patch to another repository.

Git problem: error: unable to create temporary sha1 filename

October 15th, 2009

I got git problem: error: unable to create temporary sha1 filename when pushing to a remote repository. The fix is rather easy.

Codaset.com: Github, but better

September 8th, 2009

Today I had the very pleasure of giving Codaset.com a try! Codaset is being developed by Joel Moss in Ruby on Rails and could be a real Github killer!

Git Tag Mini Cheat Sheet Revisited

September 5th, 2009

Just as a kind of mini cheat sheet for using git tags. Jörg Mittag had some great additions that weren’t in the original post which warrant a new post.

Git has three different type of tags:

  • Lightweight tags
  • Annotated tags
  • Signed tags

Let’s start with lightweight tags.

Lightweight tags

Git Tag Mini Cheat Sheet

September 4th, 2009

Just as a kind of mini cheat sheet for using git tags:

Adding a tag:

  • git tag tag_name
  • git tag
    Should show your new tag.
  • git push origin --tags or git push origin :tag_name
    Because git push doesn’t push tags.

Removing a tag:

  • git tag -d tag_name
  • git tag
    Should no longer show your tag.
  • git push origin :refs/tags/tag_name
    Because git push --tags doesn’t push deleted tags.