Created
February 19, 2015 09:37
-
-
Save ncornette/77fdf6ee4777965813d4 to your computer and use it in GitHub Desktop.
Git 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
#1 create fresh git clone | |
#2 track all remote branches | |
for b in `git branch -r | sed "s/ origin\///g"`; do git branch $b -t origin/$b; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment