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

Can no longer push with sourcetree (win) v2.6.10.0

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.

1 answer

0 votes
minnsey Atlassian Team Dec 04, 2018

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

Suggest an answer

Log in or Sign up to answer
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...

5,692 views 4 12
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