SourceTree won't let me delete password
Solution 1
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.
Solution 2
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:
- Cannot delete an account in SourceTree
- Still unable to delete REST Saved Passwords?
- How to update HTTP(S) credentials in SourceTree
Solution 3
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.
Solution 4
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.
Related videos on Youtube
Ryan Penning
Updated on August 05, 2022Comments
-
Ryan Penning over 1 year
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
-
Gino Mempin over 6 yearsPlease also specify the SourceTree version and your OS.
-
Ryan Penning over 6 yearsI have been able to fix this issue by going back a version of sourcetree, it seems the version I am on causes this issue.
-
Gino Mempin over 6 yearsHere is the related issue on the Atlassian forums: community.atlassian.com/t5/SourceTree-questions/…
-
-
Yahya Tawil about 3 yearsFinally, someone mentioned credential manager