Git rocks, and after two days of using I can confirm it.
Also on bioinfoblog the match between git and bazar it’s a though one, but I right now the svn support from git just works out of the box, so I started to use it.
I want also to point out that with the last git (ATMOW) is possible to create a remote branch on the svn server with:
git svn branch mybranch
and this was one of the killer feature that made me switch.
This is not a tutorial on git but I will provide you some quick and dirty pointers to other posts that I found interesting for a quick introduction to git.
Stuff to keep in mind about git:
- You always work in a local branch.
- You commit locally
- You push (or dcommit if using a remote svn repository) to the remote branch.
- The name of a remote branch is remote/foobar and you need to put the remote prefix also if it doesn’t show up with the remote prefix not optional. You need this if you create a local branch and you want to track a remote branch.
Some pointers here:
I’ve customized my bash prompt to show my current branch on a git repository. This is the code (based on some code found on the net that I can’t track anymore.. I’m sorry….) looks like this:
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* (.*)/(1)/'