Created
October 14, 2016 06:14
-
-
Save athurg/ff585df7290bb6d19b2d5e4a0edfdc4a to your computer and use it in GitHub Desktop.
Pull all branch to local and set track
This file contains hidden or 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
| #!/bin/sh | |
| 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