Transferring repo from bitbucket to github failing
Asked Answered
F

7

14

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

Fdic answered 10/5, 2016 at 22:17 Comment(0)
F
14
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.

Fdic answered 11/5, 2016 at 22:25 Comment(4)
I've tried both Bitbucket and Github credentials & I'm still getting the same warning. Could it be because the repo is private on Bitbucket?Complement
@SamYoungNY, I am not sure but I am afraid a private repo may not be allowed to be transferred.Fdic
@Complement it works for private repositories as well see my answer: https://mcmap.net/q/794526/-transferring-repo-from-bitbucket-to-github-failingKrystlekrystyna
Make a read only app password here... bitbucket.org/account/settings/app-passwordsSteroid
K
17

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.

Krystlekrystyna answered 16/11, 2017 at 21:17 Comment(2)
This worked for me, also don't use your EMAIL, use your username in combination with the app passwordStryker
This finally worked for me! Use the username as mentioned (visible in the repo url) and app password (bb settings - not the repo settings).Sian
F
14
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.

Fdic answered 11/5, 2016 at 22:25 Comment(4)
I've tried both Bitbucket and Github credentials & I'm still getting the same warning. Could it be because the repo is private on Bitbucket?Complement
@SamYoungNY, I am not sure but I am afraid a private repo may not be allowed to be transferred.Fdic
@Complement it works for private repositories as well see my answer: https://mcmap.net/q/794526/-transferring-repo-from-bitbucket-to-github-failingKrystlekrystyna
Make a read only app password here... bitbucket.org/account/settings/app-passwordsSteroid
J
5

For anyone else having this issue, my problem was that I was entering my email address in the username input. Your username is actually not your email and can be found in Personal Settings / Bitbucket profile settings on the Bitbucket website.

TDLR. Use username not email

Journalese answered 3/8, 2022 at 10:48 Comment(0)
J
3

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

Jone answered 22/2, 2022 at 17:24 Comment(0)
S
0

Use your Bitbucket ID and Password and not Github's credentials. It may seem confusing, because your browser may be populating GitHub's credentials since you are on Github's site.

Settles answered 12/7, 2016 at 16:7 Comment(0)
M
0

I got kept on getting that dialog when I provided my GitHub credentials. You need to provide BitBucket credentials.

Macintyre answered 16/4, 2020 at 15:25 Comment(0)
C
0

If you are requested to enter a login and a token, you can simply create the access token in the repository settings in Bitbucket. For the login, you have to use "x-token-auth" instead of your credentials.

Cutcheon answered 17/1 at 17:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.