git: 'credential-osxkeychain' is not a git command. See 'git --help'. fatal: Authentication failed

git: 'credential-osxkeychain' is not a git command. See 'git --help'.
fatal: Authentication failed

error: unable to read askpass response from '/Applications/SourceTree.app/Contents/Resources/Askpass'

getting this error when i am pushing to the repositroy from source tree

3 answers

Hi Swathi,

The reason for this is because you most likely have a hook which gets your password from the keychain. It can't work because that config doesn't work with embedded git. You can either switch to using system git in your SourceTree preferences or resolve using something similar to this: http://stackoverflow.com/questions/13661354/github-for-mac-error-git-credential-osxkeychain-is-not-a-git-command

Hope that helps

this alloys happens with source tree app and the solution that you change the settings to use the system git not the embedded git with source-tree because source tree is using an older version

after a lot of looking around, this fixed it for me, Thanks!

Just an update on this. We have 'fixed' this, but the error may still be present. It's not an error, it's more of a warning (the osxkeychain) just to say it couldn't find the authentication helper that's configured. It won't cause authentication to fail through SourceTree, it just won't use one that's set up.

Cheers

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Europe

Venue Needed! 23rd October

Hey Everyone! Unfortunately, the venue that was hosting us on the 23rd has pulled out so we're looking for a new venue.    If anyone would have a room free that we could use on the ev...

44 views 1 0
View post

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