Skip to content

Instantly share code, notes, and snippets.

@vavasilva
Last active June 12, 2018 13:17
Show Gist options
  • Save vavasilva/4072f3562dbd262a7035aff47bc315cd to your computer and use it in GitHub Desktop.
Save vavasilva/4072f3562dbd262a7035aff47bc315cd to your computer and use it in GitHub Desktop.
Transfer repo from Bitbucket to Github
git clone --mirror https://bitbucket.org/exampleuser/repository-to-mirror.git
# Make a bare mirrored clone of the repository

cd repository-to-mirror.git
git remote set-url --push origin https://github.com/exampleuser/mirrored
# Set the push location to your mirror

git push --mirror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment