Ryan Penning
Ryan Penning

Reputation: 241

SourceTree won't let me delete password

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

Answers (4)

KyleMit
KyleMit

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?

  1. First close any open instances of SourceTree

  2. As Pathfinder, pointed out, SourceTree stores some of the passwords using the Windows Credential Manager

  3. Go to Control Panel > User Accounts > Manage Credentials > Windows Credentials

  4. Find any offending passwords and remove them

    Windows Credential Manager

  5. SourceTree also stores passwords in you Local App Data Folder in a passwd file:

  6. Open Windows Explorer (⊞ Win+E)

  7. In the address bar, go to %LocalAppData%/Atlassian

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

    Delete Local File

  9. Open Source Tree and Perform a Fetch before doing anything else.

Further Reading:

Upvotes: 29

Andrey Stukalin
Andrey Stukalin

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

PathToLife
PathToLife

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

BenG
BenG

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

Related Questions