简体   繁体   中英

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'.

在此输入图像描述

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM