Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sourcetree change password of existing account

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

like image 878
Eelke Avatar asked Apr 13 '17 11:04

Eelke


People also ask

How do I change my SourceTree account?

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.

Where does SourceTree store credentials?

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.


1 Answers

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.

like image 192
Jérôme Gillard Avatar answered Sep 16 '22 15:09

Jérôme Gillard