Unable to import github repo in bitbucket using import repository
Asked Answered
B

1

5

I am importing a repo that is in GitHub to bitbucket using the import statement. Looks like an SSH key issue to me. Also, the repo which I am trying to import is a private repo within my organization. Can anyone please guide me on how to resolve this? Thanks in advance. enter image description here enter image description here

Barramunda answered 4/8, 2022 at 5:2 Comment(1)
Note that if the redacted information is actually sensitive, you might want to use a black thick bar instead of these thin lines. At least some parts are still readable..Tina
D
12

If the remote GitHub clone has failed, using an HTTPS URL, then no SSH keys are involved.

Double-check the password used. It is possible it requires not the GitHub user account password, but a token (PAT: Personal Access Token) associated to that account, for the clone to succeed.

See "GitHub: Creating a personal access token (classic)"

Disendow answered 4/8, 2022 at 5:36 Comment(5)
In the documentation, it says that we have to enter the password for the user who has access to that repo and not PAT.Barramunda
@AkshaySeth Still, I would try a token. The documentation might be outdated.Disendow
@AkshaySeth: Also, note that a PAT is a password, of sorts - it's just a special kind of password (and the only kind that Git accepts here).Andress
Thanks! Did the trick for me! Here is the link to GitHub docs, with instructions on how to create the PAT via GitHub UI: docs.github.com/en/authentication/… Just in case...Guff
@Guff Thank you for your feedback. I have edited the answer to include your link.Disendow

© 2022 - 2024 — McMap. All rights reserved.