anuruddhika
anuruddhika

Reputation: 1559

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

I connected with bitbucket and I installed Git and sourcetree in my computer and I try to connect sourcetree and bitbucket together. but I couldn't connect both. when I try to clone repository source path, it says

this is not a valid source path... 
git: 'credential-osxkeychain' is not a git command. See 'git --help'.

enter image description here

like this error

I don't have any idea about credential-osxkeychain file, and I'm using windows os

can anyone help me to solve this problem?

Upvotes: 7

Views: 17204

Answers (3)

Jason Zhang
Jason Zhang

Reputation: 1

Try switch your Git Instance to Apple Git. It's worked for me.

Upvotes: 0

Mahendran
Mahendran

Reputation: 2719

On a windows machine WinCred can be used to store credentials. Set Git to use windows credentials manager by running

git config --global credential.helper wincred

Try git fetch or pull and it should prompt credentials again and store it in credential manager.

Credential manager can be found at Control panel (search would point at right direction). This would come in handy to delete credentials quickly.

Upvotes: 4

iltempo
iltempo

Reputation: 16012

Is there any chance that

$ git config --get credential.helper

is showing osxkeychain? This only works in OS X.

Try to find the according .gitconfig file (probably in $HOME) and remove the credential helper line.

EDIT: Atlassian documented the issue as well.

Upvotes: 5

Related Questions