Skip to content

Instantly share code, notes, and snippets.

@willtonkin
Created October 1, 2016 14:43
Show Gist options
  • Save willtonkin/1ad2c9d7ba3c85886c04bd8b983bc890 to your computer and use it in GitHub Desktop.
Save willtonkin/1ad2c9d7ba3c85886c04bd8b983bc890 to your computer and use it in GitHub Desktop.
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