Skip to content

Instantly share code, notes, and snippets.

@sparkbold
Forked from schmich/git-repo-mirror.md
Created May 15, 2020 12:37
Show Gist options
  • Save sparkbold/4fa9034e8695520fe325fa3971a20b46 to your computer and use it in GitHub Desktop.
Save sparkbold/4fa9034e8695520fe325fa3971a20b46 to your computer and use it in GitHub Desktop.
Mirroring a repo to BitBucket
  1. Create an empty repo in BitBucket
  2. git clone --bare git@github.com:user/repo.git
  3. cd repo.git
  4. git push --mirror git@bitbucket.org:user/repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment