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

12,942

Solution 1

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.

Solution 2

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.

Share:
12,942
anuruddhika
Author by

anuruddhika

Updated on June 24, 2022

Comments

  • anuruddhika
    anuruddhika almost 2 years

    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?