Last active
September 18, 2015 17:43
-
-
Save rossbar/3a5b0e6b9072c9507a4e to your computer and use it in GitHub Desktop.
Set up local repository to track all remote branches
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/questions/379081/track-all-remote-git-branches-as-local-branches | |
for remote in `git branch -r | grep -v /HEAD`; do git checkout --track $remote ; done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment