Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

now only the Public Repositories can clone... well?

lwdlse July 29, 2024

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:\...>

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2024

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events