Git sync/fetch remote branches

17.Oct.2014

To synchronise all remote branches with local version in git, all you need to do is run following commands:

for remote in `git branch -r`; do git branch --track $remote; done
git fetch --all
git pull --all

Thanks Wookie88 for answer on stackoverflow and TL;DR version.