Unable to import repo from Bitbucket cloud to GitHub #184089
-
Select Topic AreaQuestion BodyTo import from BitBucket cloud, I tried with my BitBucket username and generated a token in BitBucket profile. Tried various tokens with all permissions, admin only permissions, etc. But unable to import my repo. All I see is an error that "Whoops! Something went wrong. Please try again later." Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
|
Hi, this is a common issue when importing repositories from Bitbucket Cloud to GitHub and is usually related to authentication or token type. Please check the following points:
Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
|
App passwords has been replaced by API tokens As of September 9, 2025, app passwords can no longer be created. Use API tokens with scopes instead. All existing app passwords will be disabled on June 9, 2026. Migrate any integrations before then to avoid disruptions. So, I used that. It doesn't work with that either. |
Beta Was this translation helpful? Give feedback.
-
Root causeThis is not a credential or permission issue. Bitbucket Cloud deprecated App Passwords and replaced them with API tokens (effective Sept 9, 2025).
Because of this mismatch, imports from Bitbucket Cloud currently fail even when valid API tokens with full scopes are used. What does NOT work
Working workaround (recommended)Manual migration is currently the only reliable solution. # 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 |
Beta Was this translation helpful? Give feedback.
-
|
Yes — this transfers ALL commits, ALL branches, and ALL tags, not just Explanation:
Nothing is lost:
The only things NOT migrated automatically are:
If you want to double-check locally before pushing: git branch -a
git log --oneline --all --decorate |
Beta Was this translation helpful? Give feedback.
Yes — this transfers ALL commits, ALL branches, and ALL tags, not just
main.Explanation:
git cloneclones the entire repository history by defaultgit push github --allpushes every local branch (main + feature branches)git push github --tagspushes all tagsNothing is lost:
The only things NOT migrated automatically are:
If you want to double-check locally before pushing: