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

Help Needed: SourceTree Authentication Failure with Bitbucket over HTTPS, but Terminal Works Fine

andreaExo
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!
April 5, 2024

Hello Atlassian Community,

I’m reaching out for assistance with an issue I'm experiencing with SourceTree and Bitbucket authentication over HTTPS. While I can successfully use SSH within SourceTree, and HTTPS via the terminal for Git operations (prompting for my Bitbucket password works fine), both OAuth and App Password fail within SourceTree.

I have tried the following steps to resolve the issue:

  1. Verified the default Bitbucket account in SourceTree.
  2. Generated and used a new app password in Bitbucket for Basic authentication.
  3. Cleared outdated credentials from both the Windows Credential Manager and within SourceTree.
  4. Refreshed OAuth tokens and re-entered app password in SourceTree.
  5. Checked the global .gitconfig for any old settings and made sure it is updated with the current user information.

The terminal-based Git operations with HTTPS work perfectly when I am prompted for my Bitbucket password. However, the same operations fail within SourceTree, suggesting a potential issue with SourceTree's handling of credentials.

Has anyone encountered a similar problem or have suggestions to resolve this authentication dilemma? Any help or pointers would be greatly appreciated, as this is impacting my workflow significantly.

Thank you in advance for your time and help!

1 answer

1 vote
Michael Sarafidis
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!
April 8, 2024

Same problem here,

I have tried both creating an SSH key and App Password and both fail to clone a repo at Sourcetree GUI version 3.4.17 from bitbucket cloud.

The App Password works fine Sourcetree git terminal and also Github desktop that I have tried.

Thus, it is a Sourcetree GUI problem.

I would also be glad to hear a solution here.

Joseph DeAngelo
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!
April 30, 2024

I'm seeing what seems to be the same problem.

 

Peter Busk
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 1, 2024

I have been fighting the same problem with SourceTree, not being able to clone.

Have now installed git and it has no problem cloning same repository.

What to do ?

Peter Busk
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 2, 2024

I solved this issue by closing all programs, renaming: c:\Users\<USER>\AppData\Local\Atlassian folder to something else and reinstall Sourcetree.

Now all worked fine :-)

 

Suggest an answer

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

Atlassian Community Events