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

SourceTree keeps failing credentails

Massimo Artizzu August 12, 2017

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch --prune origin
remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.
fatal: Authentication failed for 'https://bitbucket.org/xxx/yyy.git/'

 

This started happening after I updated SourceTree (Windows) to v2.1.10. It tries to run the command 4 times and then fails. It doesn't ask me for a password, it just fails.

During the installation I've been prompted to login to Atlassian, which I did

I've tried the following, without success:

  • removed the username from the remote URL in Repository / Repository Settings / Edit origin;
  • and from the Username field;
  • replaced the username with my account's email;
  • removed all of my saved credentials from Tools / Options / Authentication;
  • recreated the credentials for my Bitbucket account (which has been verified during the process);
  • set said credentials as default;
  • uninstalled and reinstalled SourceTree.

Nothing, same problem that's driving me crazy. The only workaround I've found is to put both username and password in the remote URL, which is unacceptable in more than a very short term.

What credentials is SourceTree using, and where does it take them?!

Executing the same command from the terminal, git correctly asks me for the password. When been given, it does the job just fine.

What should I do to fix this?

1 answer

8 votes
Massimo Artizzu August 12, 2017

Looks like this issue was the culprit. Updating the embedded git seems to solve the problem.

A really obscure and unintuitive solution, if you ask me.

Guys, this is bonkers. Why was the embedded git left behind to v1.9.5 when I updated, if this has been proven to be problematic?

The updating process needs some rethinking, IMO.

Noha Salem August 16, 2017

thank you for that answer and link updating the embedded git solved my problem

Nino Kienberg September 20, 2017

This one worked for me too. Thank you very much.

zubkovnikolay November 20, 2017

Thank you very much!)

shanegoddard February 7, 2018

And still nothing... for the love of God, how to I get back to work????

harika March 9, 2018

Its work for me by reseting te embeded git 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events