Created
August 26, 2009 08:24
-
-
Save craigw/175394 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/sh | |
REPO=$1 | |
git clone $REPO | |
cd `basename $REPO .git` | |
for BRANCH in `git branch -r`; do | |
git co --track \ | |
-b remote/$BRANCH \ | |
$BRANCH | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment