I have 2-3 accounts Bitbucket/Atlassian
well before 6-mo, I had no problems lining & pushing/pulling repositories CLI
VSCODE terminal
phpstorm terminal
now only the Public Repositories can clone... well?
<screenshot_removed>
PS C:\...> git clone https://username@bitbucket.org/workspace-id/repo.git
Cloning into 'public-test-1'... remote: Enumerating objects: 4, done. remote: Counting objects: 100% (4/4), done. remote: Compressing objects: 100% (4/4), done. remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0) Receiving objects: 100% (4/4), done. PS
C:\...> git clone https://username@bitbucket.org/workspace-id/repo.git
Cloning into 'private-test-1'... fatal: Invalid credentials remote: Invalid credentials fatal: Authentication failed for 'https://username@bitbucket.org/workspace-id/repo.git' PS
C:\...> git clone https://username@bitbucket.org/workspace-id/repo.git
Cloning into 'private-test-1'... fatal: Invalid credentials remote: Invalid credentials fatal: Authentication failed for 'https://bitbucket.org/workspace-id/repo.git' PS
C:\...>
Hi @lwdlse,
Cloning public repositories via HTTPS does not require authentication, which is why the clone of public repos succeeds.
Looking at the screenshots and output you provided here, I see that you are not asked for a password. This means that credentials are most likely stored in a credential manager and offered during thee clone operation. You can use the following two commands to see whether a credential helper is set and which one:
git config --global credential.helper
git config --system credential.helper
If you use a Git GUI client, please check if that client has any stored credentials for bitbucket.org.
You can then remove the stored credentials for bitbucket.org, generate a new app password via https://bitbucket.org/account/settings/app-passwords/ for the account that has access to these repos, and use that instead when you clone.
Just a heads up, I removed the screenshot and sanitized the URLs on your post as this is a public forum.
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.