I have a private repo on git that I would love to import in another private repo. When I try to import it, I log in with my account and then this message Your old project requires credentials for read-only access. We will only temporarily store them for importing.
continue to pop up and I cannot import the repo. Someone could help?
I had the same problem and was able to resolve it by using the Personal Access Token (token access to Private Repositories) instead of the password. Take a look at this from the github community which gives a bit more detail (the answer from hobojoe1848): https://github.community/t/import-repository-not-working/2044/4
If you're importing a private repo from Bitbucket to GitHub, you need to create a new App Password with read-only access for GitHub to import the repo.
Steps :
- In your Bitbucket, go to "Personal settings".
- Under "Access Management", select "App passwords".
- Click "Create app password".
- Give it a label, select the relevant fields for your usage, then click "Create".
- Save the password somewhere safe & secure, because Bitbucket will never show you again.
- Use the newly created app password along with your Bitbucket username to log in and import the repo on GitHub.
It is recommended to revoke the app password once you're done using it.
I had the same issue.
It was resolved when I used my username for my Bitbucket account instead of my email.
I also used an app password instead of my regular password.
Use a Personal Access Token (in place of the password) - direct link to create one: https://github.com/settings/tokens/new
(Inspired by tedel's answer, but 1) the edit queue is full so I can't edit it, and 2) their link is now broken — as well as Adnan's comment).
For Login: give your git username
For the Token: go to settings->developer settings -> Personal Access Tokens -> Generate a new token with permissions to the needed repo.
This worked for me.
© 2022 - 2024 — McMap. All rights reserved.