Last Updated: March 07, 2016
·
512
· treble37

How to Move an Existing Github repository to Bitbucket

  1. Sign in to Bitbucket and create the repository
  2. Make sure you have setup all the local tracking for the remote branches you'd like to move to bitbucket
  3. Change all your remotes with the remote set-url command:

=========

git remote set-url origin    git@bitbucket.org:your_username/your_bitbucket_repo.git

Then:

git push -u origin --all # pushes up the repo and its refs for the first time
git push -u origin --tags # pushes up any tags