Sourcetree has invalid credentials but cannot clear / reset them. How do I fix?

David S
Contributor
June 9, 2020

I have cleared all of the cached windows credentials.

I have cleared the source tree credentials.

I have cleared the git credentials.

It continually sends invalid credentials to bitbucket server and locks my account.  I cant work.

HTTPS connection.

It never prompts me for user/password.

This question was asked earlier but never truly answered.

1 answer

1 accepted

0 votes
Answer accepted
David S
Contributor
June 9, 2020

Found this undocumented answer, it is sort of back-end hack.

Apparently Sourcetree in some fleet of over-site, stores the password in a file that only gets changed or reset when deleting the file. Even after removing all credentials within the Sourcetree interface.

No option to change the password, you must delete the file.

This is rather annoying for any security conscious person/organization that changes their password on a regular bases.

----

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events