Last active
December 20, 2025 18:28
-
Star
(572)
You must be signed in to star a gist -
Fork
(101)
You must be signed in to fork a gist
-
-
Save mandiwise/5954bbb2e95c011885ff to your computer and use it in GitHub Desktop.
Transfer repo from Bitbucket to Github
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/ | |
| // See also: http://www.paulund.co.uk/change-url-of-git-repository | |
| $ cd $HOME/Code/repo-directory | |
| $ git remote rename origin bitbucket | |
| $ git remote add origin https://github.com/mandiwise/awesome-new-repo.git | |
| $ git push origin master | |
| $ git remote rm bitbucket |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At least for me, it was no longer possible to migrate using GitHub importer. Perhaps because the authentication is now using API tokens and no longer App passwords, no idea, it just throws "something went wrong" with no clear explanation of what was wrong. Resorted to as simple as
In my case I just needed to migrate because of the recent email of Atlassian removing the repositories. A bit more painful for "more repositories", but surely it would be pretty easy to automate yourself, including ability to handle 100 or whatever amount of repos.