Reputation: 241
I am in the process of deleting an account on my source tree, but whenever I attempt to delete in:
Tools > Options > Authentication
SourceTree doesn't delete the saved password. I need to delete the password as it has the incorrect details associated with the account.
OS: Windows 10
Version: 2.1.2.5
Upvotes: 24
Views: 38530
Reputation: 29909
I think Atlassian is trying to prevent the same sort of thing as trying to delete a branch that has unmerged commits, in that if the account/password is actively used in any of your repositories, the UI won't let you delete it as that could permanently remove access if the password was forgotten.
So how do you do a --force
delete?
First close any open instances of SourceTree
As Pathfinder, pointed out, SourceTree stores some of the passwords using the Windows Credential Manager
Go to Control Panel > User Accounts > Manage Credentials > Windows Credentials
Find any offending passwords and remove them
SourceTree also stores passwords in you Local App Data Folder in a passwd file:
Open Windows Explorer (⊞ Win+E)
In the address bar, go to %LocalAppData%/Atlassian
Open the Source Tree Folder and delete the only account+pasword rows or if required delete the all accounts or delete the complete passwd
file
Open Source Tree and Perform a Fetch before doing anything else.
Further Reading:
Upvotes: 29
Reputation: 5939
I'll add to @KyleMit answer that you can actually edit this %LOCALAPPDATA%\Atlassian\SourceTree\passwd
file and remove only the record you want to re-enter.
Upvotes: 35
Reputation: 1183
For windows:
I solved my problem by going into windows credential manager and deleting the offending sourcetree account.
This is probably a problem with program privileges, perhaps starting source tree as admin will allow it to remove entries from the windows credential manager.
Upvotes: 13
Reputation: 47
I had the same problem. I was able to resolve it by following the steps here: https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html
It may be a bit of overkill, but it was the only thing that worked.
Upvotes: 4