Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot Clone Git Repository from Command Prompt

Martin Svedlow
July 12, 2026

I tried the following using the Command Prompt window:

git clone https://x-token-auth:<TOKEN>@bitbucket.org/username/jdbccrudXX.git

With the error response:

Cloning into 'jdbccrudXX'...
remote: You may not have access to this repository or it no longer exists in this workspace. If you think this repository exists and you have access, make sure you are authenticated.
fatal: Authentication failed for 'https://bitbucket.org/username/jdbccrudXX.git/'

1 answer

0 votes
Ajay _view26_
Community Champion
July 12, 2026

Hi Martin 

Bitbucket deprecated the old app password / token flow for HTTPS cloning a while back.

If you're using a repository access token, double-check that it was generated with READ permission on the repository scope.

Workspace-level tokens won't work for cloning unless you explicitly grant repo access.

Quick diagnostic:

run git ls-remote https://x-token-auth:<TOKEN>@bitbucket.org/username/jdbccrudXX.git 

If that also fails with the same auth error, it confirms the token itself lacks the right scopes. Regenerate it from Repository Settings > Access Tokens and make sure "Read" is checked.

Let us know what you find.

Cheers

Ajay

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events