I\'ve set up tracking branches with the --track
option, and when I do a git pull
on master
, it fetches all branches to origin/br
If you really want to fast forward all local branches that are tracking remote branches you might want to consider adding this as an alias to your ~/.gitconfig
:
[alias]
pull-all = !"for b in $(git for-each-ref refs/heads --format='%(refname)') ; do git checkout ${b#refs/heads/} ; git pull --ff-only ; done"
You can then run git pull-all
, it will iterate through your local branches and run a git pull --ff-only
on each.