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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Sourcetree has invalid credentials but cannot clear / reset them. where are they stored?

I have cleared all of the cached windows credentials.

I have cleared the source tree credentials.

It continually sends invalid credentials top stash and locks my account.  I cant work.


version: latest ...

4 answers

1 accepted

14 votes
Answer accepted

POSSIBLY SOLVED:: OK. If anyone else this problem, then try going to Tools --> Options --> Git (Tab).  At the bottom of the page, see the button "Update Embedded Git".  Click this and it will do an update of the embedded Git version.  You will see the version number change.

I then closed Source Tree and restarted it.  The next update (Pushed a new tag), I did, it asked me for my credentials.  All has been good since.

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 20, 2018

Hi Aaron! Once you confirm this solved your issue, please feel free to mark your solution as accepted so other users can find it more easily!

Have good day :)


I do think that ATLASSIAN could do some minimum version compatibility checks on this and let the user know that it is incompatible and needs to be updated.  Source Tree was telling me that I had the latest version, but this is misleading, as I only had the latest version of Source Tree but it was using an old incompatible version of embedded GIT.

Please fix this ATLASSIAN.

Deleted user Oct 10, 2018

Capture.PNGI add bitbucket and github accounts. Set Keys and password, set ssh to my bitbucket, I configure a lot of things, even so, SourceTree ask me for credentials, and i enter the bitbucket credentials to push to the github repository. 1 hour trying to solve this crap.

Back to GitBash

This solved the issue! Thank you!

Like olopezf likes this

How does this work when you don't use embedded?

Seems like a bug in SourceTree, as I'm having this problem with version 3.3.8.

Found an answer that maybe helpful.

The only thing that worked for me was navigating to C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree and removing the passwd file.

Once this file is removed, restart SourceTree and execute a fetch or something else that requires access to the repo in question. SourceTree will then prompt you for your password, rewriting the cached credentials.


Like # people like this

Deleting the passwd file in C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree solved this for me.  Thanks, @David S

Like # people like this

@David S Deleting the password file worked, thank you for finally saving me. How on earth would I have figured that its stored there and not anywhere in Preferences in the app itself, if not for stumbling across this comment, i dont know. it is maddening

Like # people like this

David S thank you!
I was struggling for a week, trying to make SourceTree somehow ask for my credentials...
I was generating new key pairs, asking my ISP to investigate server log, but this simple step did the trick.
Saved my life :))))))

Like David S likes this

@David S Everyone should like and thank David.

I saw a lot of time wasting answers on this issue. I wish I have a power to wipe those answers of the internet and leave David's answer. Because of David, I signed up to Atlassian for the first time to say thank you. 

Like # people like this

@Joseph Salu You're an awful person.

Thank you David S, that solved my problem. 

Hey Atlassian, I shouldn't have to delete some hidden file to update my password!!!!

@David S Deleting the password file worked, thank you very much for your answer I was debating reinstalling sourcetree but this worked like a charm!!!

Thanks mate. Solved my problem

@David S It resolve my problem as well. Thumbs up!

On a Mac pressing the Preferences -> Git -> Reset to Embedded Git, might have helped, but I also searched for SourceTree in the KeyChain app and deleted the saved password entry. Remember to also close and reopen SourceTree.

Screen Shot 2018-05-10 at 15.51.54.png

I have been locked out of my account again.

I checked the KeyChain and it has the wrong password in it, this morning it was just a single character, unrelated to my password. So it looks to me like SourceTree is sending the incorrect password to the KeyChain. Which is then used to log into my remote server and after a few attempts I get locked out.

I had changed my password and sourcetree kept using the wrong password and didn't let me enter a new one. Resetting to embedded git or using system git changed nothing, what worked was to delete the password from the mac keychain. Thanks.

Like sivachaitanya koorapati likes this

"...pressing the Preferences -> Git -> Reset to Embedded Git"

I got it working just by doing the above. Thanks!

Tried both ways, using embedded works perfectly (git version 2.31.0), using system git (BigSur 11.6, git version 2.32.0) fails completely every single time, no matter what I do. I'm using App Passwords over HTTPS with Basic login - as per Atlassian login changes in 2022.

Many thanks for the help.

I am using sourcetree with a bitbucket server to access git repository.

I was facing the authentication issue on sourcetree after I changed my password:

Deleting password file in the directory: C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree, did not work me this time. (It did work earlier)


So what I had to do is:

  1. Uninstall Source Tree
  2. Delete all the files & directories related to Source Tree in C:\Users\USERNAME\AppData\Local\Atlassian\
  3. Install Source Tree
  4. Add your local/remote repository. 
  5. When you try to clone/pull, Source tree prompts you to put your password.
  6. There after you can enter your password and the issue seems to be fixed.

When setting the password.

It maybe best to create a Personal Access Token.

That way when your password changes, you don't need to go through these steps.

Thanks this answer worked for me finally.


What a waste of time that was. 

Solved also for me on windows 11

WTF is is sh*t? do I choose wincred or wincred?......neither works lol

Screenshot 2023-11-16 114637.png

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events