Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Fix: Sourcetree invalid credentials that cannot be cleared or reset. Edited

Symptoms:

You've changed the password on Accounts in Sourcetree.

You've changed the password on the Repo within Sourcetree.

You've removed all Accounts and password for repo from Sourcetree.

Reasons:

Turns out, Sourcetree stores the password in a file that doesn't get updated.

It's based on username@server.

The only way to fix/change/reset this, is to delete the file. Removing all credentials within the Sourcetree interface does not help. Changing the password does not help.

The file must be deleted.

This is rather inconvenient for persons and organizations that change their password on a regular bases. This should be considered a work around or hack.

Answer:

Remove the file "passwd" under location.

Location: C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree

File: passwd

Path Shortcut:: %userprofile%\AppData\Local\Atlassian\SourceTree 

 

If you're a macOS you can find the password files per repo it in
~/Library/Application Support/SourceTree"

 

For Wrong Username, look in the location.

C:\Users\USERNAME\AppData\Local\Atlassian\SourceTree\userhosts

 

Thank you:

I'd like to thank @David Keck for providing the answer.

Ref: https://community.atlassian.com/t5/Sourcetree-questions/How-to-update-HTTP-S-credentials-in-sourcetree/qaq-p/297564#M15743

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

4,457 views 4 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you