You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Up until the last few weeks I cannot push with sourcetree and have had to rely on intellij to push stuff up to my git master is get this:
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags origin master:master
fatal: HttpRequestException encountered.
An error occurred while sending the request.
git: 'credential-cache' is not a git command. See 'git --help'.
git: 'credential-cache' is not a git command. See 'git --help'.
remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/xxxxxxx/yyyyyyyy.git/'
Pushing to https://github.com/xxxxxxx/yyyyyyyy.git
Completed with errors, see above.
I have searched for a solution and see things about the credential-cache, but those forum entries were made back in 2012 and I figure whatever they say is no longer relevant and in 2018 the issue would be different. I recently updated to the current version of sourcetree and it is around then that this happened. Is there some config that needs to be changed? The push works fine when i do it from intellij so i know my credentials work and I know that my version of git is good. Pulls seem to work, which is confusing, my repo is private so i would expect to need the credentials to work for that as well
Thanks for any assistance you can provide.
Hi
Sourcetree for Windows and Git rely on the Git Credential Manager for Windows, GCMW, to handle authentication. Unfortunately there have been a series of issues with the GCMW over recent months. These seem to be resolved in v1.18.3 that is bundled with Git for Windows 2.19.2. You can install it and then use the Tools/Options/Git System Git option to pick it up.
This will also ensure you are TLS 1.2 compliant, see https://community.atlassian.com/t5/Sourcetree-questions/Unable-to-authenticate-on-Windows-using-username-password/qaq-p/954836#M26404 for more information
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.