Created
April 29, 2014 17:54
-
-
Save mmitchel/11407440 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do | |
git branch --track ${branch##*/} $branch | |
done | |
It will create tracking branches for all remote branches, except master (which you probably got from the original clone command). I think you might still need to do a | |
git fetch --all | |
git pull --all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment