Last active
August 29, 2015 14:03
-
-
Save ninnypants/20b6ac15e5b51985c6d4 to your computer and use it in GitHub Desktop.
Locally checkout all remote branches of a repository
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 | cut -d '/' -f2 | grep -Ev '( |master)' | xargs -Ibranch git checkout -b branch origin/branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment