繁体   English   中英

git:'credential-osxkeychain'不是git命令。 看'git --help'

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

我与bitbucket连接,我在我的计算机上安装了Git和sourcetree,我尝试将sourcetree和bitbucket连接在一起。 但我无法连接两者。 当我尝试克隆存储库源路径时,它说

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

在此输入图像描述

喜欢这个错误

我对credential-osxkeychain文件一无所知,而且我正在使用windows os

任何人都可以帮我解决这个问题吗?

有没有机会呢

$ git config --get credential.helper

正在展示osxkeychain 这仅适用于OS X.

尝试找到相应的.gitconfig文件(可能在$ HOME中)并删除凭证帮助行。

编辑:Atlassian也记录了这个问题

在Windows机器上, WinCred可用于存储凭据。 设置Git以通过运行来使用Windows凭据管理器

git config --global credential.helper wincred

尝试git fetch or pull ,它应该再次提示凭据并将其存储在凭证管理器中。

可以在“控制”面板中找到凭据管理器(搜索将指向正确的方向)。 这可以很方便地快速删除凭据。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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