It could happens that git will try to push/pull from all the branches in the “tree”. For example ifyou have master->b1->b2 and you’re working in b2 you see that master is pushed/pulled as well when executing the command.
All you need to do is to instruct git to not doing it.
$ git config --global push.default current $ git config --global pull.default current
Not work for me.
Git asks:
See git-pull(1) for details
git pull
If you wish to set tracking information for this branch you can do so with:
git branch –set-upstream-to=origin/ master
Hi,
The problem is that your branch isn’t setup to track a remote branch, which isn’t the problem this post aims to solve, some details on setting up tracking branches can be found here:
http://stackoverflow.com/questions/520650/make-an-existing-git-branch-track-a-remote-branch
You’re perfectly right (I guess) Thomas. I don’t exactly recall
why/how I ended up in that situation but re-reading this old post I
think you’re right. The branch should have been set for tracking the
remote a simple `git push –set-upstream fork branch` at the
beginning.