Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Transferring repo from bitbucket to github failing

I am trying to import a repository into github from my bitbucket account it seems to be failing and shows following message,

"Your old project requires credentials for read-only access
We will only temporarly store them for importing."

Path used for importing looked something like: https://[email protected]/blal/blahblahblah.git

What credentials should I put in and where should I put the credentials? I am trying the "Import Repository" feature of github given on their website: enter image description here

like image 567
Usman Avatar asked May 10 '16 22:05

Usman


3 Answers

folks if you are having the same problem as mine I fixed this by providing repo owner/maintainer username and then in the password field i have entered my personal-access-token as I had personal access token on my github repos.

Check out personal access token docs here

The answer is described in more details bellow

https://github.community/t/import-repository-not-working/2044/2

like image 180
Ali Hussnain Avatar answered Sep 29 '22 10:09

Ali Hussnain


Your old project requires credentials for read-only access
We will only temporarly store them for importing.

This basically means that we need to give the BitBucket login ID and password. When I entered BitBucket ID and password, importing went through fine and I could then see the imported repo on github.

like image 29
Usman Avatar answered Sep 29 '22 12:09

Usman


Use your Bitbucket credentials.

Note: if you have enabled two-factor authentication on Bitbucket. Go to Bitbucket settings and create app password. Use that generated password when you are authentication on GitHub instead of your normal Bitbucket password.

It also work for private repositories.

like image 33
martinmose Avatar answered Sep 29 '22 11:09

martinmose