Skip to content

Instantly share code, notes, and snippets.

@mandiwise
Last active June 10, 2025 13:49
Show Gist options
  • Save mandiwise/5954bbb2e95c011885ff to your computer and use it in GitHub Desktop.
Save mandiwise/5954bbb2e95c011885ff to your computer and use it in GitHub Desktop.
Transfer repo from Bitbucket to Github
// 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
@drmrbrewer
Copy link

Works nicely, but if you have e.g. 100 repos to migrate from bitbucket into GitHub, I assume this import tool can only do this one at a time? Is there an equivalent API / automated import?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment