Last Updated: February 25, 2016
·
602
· adamstrawson

Track all remote branches

Run the below in a git directory to track all remote Git branches.

for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do; git branch --track ${branch##*/} $branch; done;