I've had success with the following method in the past:
For this method, I have added the following alias:
up = pull --rebase origin
- Branch your master branch to something like 'dev' or whatever
- Work in dev
- when you've finished adding and committing changes
- git up master
- switch to master
- git merge dev
- git push
When pulling in changes from the remote repo:
- switch to master
- git up
- switch to dev
- git up master
YMMV
Mr. Matt
2009-05-10 18:31:25