Created
October 31, 2013 23:37
-
-
Save gMagicScott/7258945 to your computer and use it in GitHub Desktop.
Track all remote git branches locally with the same name
http://stackoverflow.com/questions/379081/track-all-remote-git-branches-as-local-branches/3099621#3099621
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
#!/usr/bin/env bash | |
for remote in `git branch -r | grep -v master `; do git checkout --track $remote ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment