Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Fix: Sourcetree invalid credentials that cannot be cleared or reset.



You've changed the password on Accounts in Sourcetree.

You've changed the password on the Repo within Sourcetree.

You've removed all Accounts and password for repo from Sourcetree.


Turns out, Sourcetree stores the password in a file that doesn't get updated.

It's based on username@server.

The only way to fix/change/reset this, is to delete the file. Removing all credentials within the Sourcetree interface does not help. Changing the password does not help.

The file must be deleted.

This is rather inconvenient for persons and organizations that change their password on a regular bases. This should be considered a work around or hack.


Remove the file "passwd" under location.

Location: C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree

File: passwd

Path Shortcut:: %userprofile%\AppData\Local\Atlassian\SourceTree 


If you're a macOS you can find the password files per repo it in
~/Library/Application Support/SourceTree"


For Wrong Username, look in the location.



Thank you:

I'd like to thank @David Keck for providing the answer.




Log in or Sign up to comment
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

69,196 views 132 29
Read article

Atlassian Community Events