Skip to content

Instantly share code, notes, and snippets.

@jnicol
Created July 3, 2026 12:39
Show Gist options
  • Select an option

  • Save jnicol/98e1b4fae45b8befab321248b6acde8c to your computer and use it in GitHub Desktop.

Select an option

Save jnicol/98e1b4fae45b8befab321248b6acde8c to your computer and use it in GitHub Desktop.
Migrate bitbucket repo to github
# Github's importer does not support Bitbucket's new mandarotry API token authentication.
# Manual migration is required:
# Clone the Bitbucket repository
git clone https://bitbucket.org/<workspace>/<repo>.git
cd <repo>
# Create an empty repository on GitHub (do NOT add README)
git remote add github https://github.com/<username>/<repo>.git
# Push everything to GitHub
git push github --all
git push github --tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment