How to Move an Existing Github repository to Bitbucket
- Sign in to Bitbucket and create the repository
- Make sure you have setup all the local tracking for the remote branches you'd like to move to bitbucket
- 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
Written by Bruce Park
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Bitbucket
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#