Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created December 4, 2012 02:18
Show Gist options
  • Select an option

  • Save ipmb/4199920 to your computer and use it in GitHub Desktop.

Select an option

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