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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 ... 2.4.8.0

2 answers

1 accepted

9 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 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 :)

Ana

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!

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.

Ref: https://community.atlassian.com/t5/Sourcetree-questions/How-to-update-HTTP-S-credentials-in-sourcetree/qaq-p/297564

Like # people like this

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

Like David S likes 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 David S likes 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 David S likes 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!!!!

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!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

5,774 views 4 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you