Created
December 4, 2012 02:18
-
-
Save ipmb/4199920 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
REPO=$1 | |
ORG=mycorp | |
git clone git@github.com:$ORG/$REPO.git | |
cd $REPO | |
for remote in `git branch -r | grep -v HEAD`; do git checkout --track $remote; done | |
git remote add bitbucket git@bitbucket.org:$ORG/$REPO.git | |
git push --all bitbucket |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment