Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created December 4, 2012 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipmb/4199920 to your computer and use it in GitHub Desktop.
Save ipmb/4199920 to your computer and use it in GitHub Desktop.
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