Created
February 4, 2018 11:03
-
-
Save HoldYourWaffle/2cf2ca23b2b46b849523c05e366845fb to your computer and use it in GitHub Desktop.
Git setup all remote tracking 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
git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment