As the man pages says:
git-pull - Fetch from and merge with another repository or a local branch
So, basically git pull
is a shortcut for git fetch
followed by git merge
. That's why it will move your branch reference to the latest commit. If you were on master
then master
would be updated.
If you don't want your branches to be updated, just use git fetch
instead.