Skip to content

Instantly share code, notes, and snippets.

@nic
Created March 6, 2019 06:37
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 nic/efbcc45270b2f0554fec5057abd40035 to your computer and use it in GitHub Desktop.
Save nic/efbcc45270b2f0554fec5057abd40035 to your computer and use it in GitHub Desktop.
Mirroring a repo from BitBucket (or Gitlab) to Github
  1. Create an empty repo in Github
  2. git clone --bare git@bitbucket.org:user/repo.git
  3. cd repo.git
  4. git push --mirror git@github.com:user/repo.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment