I use Sourcetree to pull and push to a server over ssh. Sourcetree has remembered the password but the password has changed. I cannot find how to inform Sourcetree of the new password.
Based on Google searches, I have tried the following things:
Looked under Tools > Options > Authentication in Sourcetree. Nothing is listed here.
Looked in the Windows Credential Manager in the Control Panel. Nothing related to git/Sourcetree or the server in question is listed here either.
I am using Sourcetree 2.0.18.1
Update
I have been circumventing this problem by using key based authentication through pageant. In the meantime, there have also been updates to Sourcetree and I'm currently using 2.3.1 for which editing/removing the %LOCALAPPDATA%\Atlassian\SourceTree\passwd
file works (2.0.18 didn't have that file).
Make sure "Allow Sourcetree to modify your global Git and Mercurial config files" is unchecked. Open your . gitconfig (C:\Users\<username>\. gitconfig), and under '[user]' change your desired username.
1 answer. The credentials are stored in the Windows' Credential Manager, under the Windows Credentials section, stored with a 'git:' prefix. This is the pattern used by Git via the Git Credentials manager for Windows which SourceTree interacts with.
I had to manually clear stored credentials by emptying those files on my Windows:
%LocalAppData%\Atlassian\SourceTree\userhost %LocalAppData%\Atlassian\SourceTree\passwd
Then restart SourceTree.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With