SourceTree keeps failing credentails Edited

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

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.

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

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

Thank you very much!)

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

harika I'm New Here Mar 09, 2018

Its work for me by reseting te embeded git 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 11, 2018 in Sourcetree

Tip from the team: debugging Sourcetree

Supported Platforms macOS Windows If you're reading this and it's not just educational… we know you're unhappy right now and apologize for that   We're dedicated to improving yo...

657 views 9 6
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