SourceTree "fatal: Authentication failed for..."

Mac OSX El Capitan.  SourceTree 2.4.  I cloned some remote repos a few couple of weeks ago, and have been pulling my team's updates in SourceTree with no issue.  

Unfortunately, I had to change my password on the remote system over the weekend, and now when I pull from the SourceTree toolbar, I get "fatal: Authentication failed for..." errors.

I found that if I open a Terminal window for a given repo, and do "pull <repoName>", it asks for my new password once, and then works from the Terminal from that point on.  However, it still continues to fail from within SourceTree, even after re-starting SourceTree.

I cannot seem to figure out how to make SourceTree recognize my newly-entered password from the Terminal pull, or forget my previous one and ask me for the new one.   What am I missing?

1 answer

This widget could not be displayed.

I just answered my own question.  There is a SourceTree Application password stored in the login keychain.  Deleting that caused SourceTree to prompt me for the new password.  Not sure how I missed it the first time I searched.

thanks! this was driving me mad, and I hadnt even created a new password! not the most experienced mac user, thanks!

How do you delete that?

this helped. thank you

To delete it

  • cmd+space and type "KeyChain Access",
  • You should find a key with the name like "gitlab.*.com Access Key for user". You can order by date modified to find it more easily.
  • Right click and delete.

Awesome!! it worked. Thanks a ton

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

721 views 1 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you