November 13, 2007

Better 'git pull'

Add to your ~/.gitconfig:

[alias]         
    update = !git fetch -v && git rebase origin  
Then use git update which will rebase any changes to master on top of the new commits. This is basically how svn update works.