You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to import an existing private GitHub repository into BitBucket but I come up on the following error each time:
Upon reviewing the forums here, it seems the correct solution for clearing the error is to ensure GitHub credentials are correct, but when I logged out and back into GitHub, despite using the very same credentials to try and import the repo seconds later on BitBucket, I still get the above error.
My next thought was perhaps I needed to generate a token on GitHub or something, but I'm presently unable to locate a place on BitBucket to use it, so whether it's this or something else, any help would be appreciated. Thank you!
Hi Kevin and welcome to the community!
What the import does is clone the repo and GitHub has deprecated the use of account passwords for Git operations over HTTPS (Bitbucket Cloud has done the same), which is why the import fails:
Have a look at the section What you need to do today in this blog post, the article mentions the use of a personal access token instead of the account password.
In the import page in Bitbucket Cloud, right below the URL field, there is a checkbox Requires authorization. Check that checkbox, and you can use your GitHub username in the Username field, and the personal access token in the Password field.
Please feel free to let me know how it goes and if you need further assistance!