Possible Duplicate:
Can “git pull --all” update all my local branches?
I'm a happy Git user. But I find that I'm often doing a lot of pulling, and maybe this can be automated.
I mean, I'm working on a local repo, and the remote is Github. I have several branches, say master
, dev
and bugfixing
. I work on multiple computers, so often I have to push a branch from one computer and pull it from the other.
This is tedious. This can sometimes take a lot of time. For example, say I'm on master
. I can do git pull
and have the updated origin/master
merged into it. But then say that origin/dev
was updated too. Now I need to git checkout dev
and git merge origin/dev
and finally git checkout master
. That's really annoying. And don't get me started on these times where the branches aren't set to track their respective remote branches and I have to do git branch --set-upstream master origin/master
.
Is there a way to have all the branches merge in the remote branches automatically? We can assume that all of the merges are fast-forward. (If they aren't I have no problem with just getting an error message so I'll manually merge.)