Created
March 21, 2015 17:37
-
-
Save c4milo/b3d5fc6b48e75277a958 to your computer and use it in GitHub Desktop.
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 branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do | |
name=`echo "$branch" | sed 's|remotes/origin/||'` | |
git branch --track "${name}" "$branch" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment