Created
February 1, 2020 21:27
-
-
Save micahblu/08c86f215fc303e9827b0cf5a93bc40b to your computer and use it in GitHub Desktop.
bash script to create local git branches from 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
for i in `git branch -a | grep remote | grep -v HEAD | grep -v master`; do git branch --track ${i#remotes/origin/} $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment