I can't clone any my repositrory beacuse of the error:
Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote https://{username}@bitbucket.org/{workspace-id}/{repo-slug}.git
Output:
Error: remote: Invalid credentials
fatal: Authentication failed for 'https://bitbucket.org/{workspace-id}/{repo-slug}.git'
I tryed to do it via Sourcetree and via Fork.
I see my remote repositoryes in Sourcetree but can't clone them. I even can create new repository on my PC via SourceTree and I see it on my Bitbucket after that. But after creation I can't interract with it on my PC.
Also I created new account on Bitbucket and created new repository there. But I have the same problem even on new account.
I think the problem is on my PC. Unfortunately I don't have acess to another PC.
Hi @planzzz1 and welcome to the community!
Do you get asked for a password when you try to clone the repo? If so, do you enter your account's password?
We have deprecated the use of account passwords for Git over HTTPS and API:
Your account's password can be used only for logging in to https://bitbucket.org/ from browser. If you want to clone, pull, push to a repo with HTTPS, you can generate an app password for your account and use that instead of a password (in combination with your username):
If you are using a credential manager, I would recommend clearing any saved credentials for bitbucket.org first, and then attempting the clone again with the app password.
Please feel free to let me know how it goes and if you need further assistance.
Just a heads up, I edited the clone URL to protect your privacy.
Kind regards,
Theodora
Resolved :)
My co-worker who really good in such questions helped.
He did something like this:
He said that some old key didn't replaced full. But I'm not totally sure because we did a lot of other not-working things before. It was the final detail which let me clone
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for the update, it's good to hear that this is resolved!
Based on the screenshot, it looks like you switched to SSH for authentication, which uses SSH keys instead of username and password.
If you use SSH to clone a repo, the URL for cloning is also different and looks like this:
git@bitbucket.org:{workspace-id}/{repo-slug}.git
Please feel free to reach out if you need anything further!
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.