14/04/2023

How to update Git password in Sourcetree

Updating Git password could leave you locked out from your own repository in Sourcetree, this happens because when the app shows an authentication failed error message, in one of its strange behaviors, it just make you stare at it, without any chance to enter a new password or account.

Same problem happens if you have entered a wrong password and it gets stored, Sourcetree has no mercy, you are f*cked.

To have another chance to enter a new user/pass there a very quick workaround, just delete the wrong credentials from the 2 following files (or delete the whole file if there is just one credential):

C:\Users\YOURWINUSER\AppData\Local\Atlassian\SourceTree\passwd
C:\Users\YOURWINUSER\AppData\Local\Atlassian\SourceTree\userhost

Then go back to Sourcetree and try to git pull/fetch from the previously unreachable repo, a popup window should ask you to authenticate.

Nessun commento: