Created
November 18, 2016 09:56
-
-
Save niqdev/045dc444724afc30addeb8b996c828f4 to your computer and use it in GitHub Desktop.
Clone all remote branches at once
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/bash | |
for i in $(git branch -r | grep -vE "HEAD|master"); do | |
git branch --track ${i#*/} $i; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment