Forums

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

Sourcetree 3.4.23 - Authentication fails on Windows 11

Deepak Jindal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 10, 2025

Installed Sourcetree 3.4.23 on my new Windows 11 Pro 64-bit machine.

When I try to clone a branch, it throws an authentication error and I can't get past it. First time it asks for a username and password, but fails the authentication every time.

Error: remote: Invalid credentials

fatal: Authentication failed for 'https://bitbucket.org/..../projectname.git'

- Not using Mercurial and SSH Keys.

1) Sourcetree > Tools > Options > Authentication > Accounts: Deleted all the accounts and added bitbucket account again. Refreshed OAuth Token and it completes authentication there.

2) C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree: Deleted passwd file. Even with the BitBucket authentication in step #1, it asks for user name and password when cloning a branch (if passwd file is deleted) and fails the authentication. On https://bitbucket.org/, the same credentials work fine.

3) In Credentials Manager, deleted all the BitBucket related accounts and went through everything again.

The same URL to clone works fine on my old Windows 10 Pro computer. I even copied both the SourceTree folders under AppData\Local\Atlassian from my old PC (does not have the passwd file) to my new PC, but the problem persists.

1 answer

0 votes
Davide Bacchi June 11, 2025

If you just use the "remote" tab to clone directly from bitbucket:
you add a "bitbucket" account and select Oauth as auth. method,

then you choose the repo you want to clone in the pane on the side

Deepak Jindal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 11, 2025

When I use "remote" tab to clone directly from BitBucket and use the account with Oauth as the authorization method, selecting the repo still asks me to authenticate my user, but fails.

BitBucket.jpg

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events