Migrate from Bitbucket to GitHub

Check out the existing repository from Bitbucket

git clone https://USER@bitbucket.org/USER/PROJECT.git

Add the new Github repository as upstream remote of the repository checked out from Bitbucket

cd PROJECT
git remote add upstream https://github.com:USER/PROJECT.git

Push all branches

git push upstream master
git push --tags upstream

References
https://medium.com/@RobertKhou/how-to-migrate-from-bitbucket-to-github-75c87a892767

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.