我正在尝试克隆一个git仓库,但它一直报错说认证失败..
以下是错误信息:
$ git clone https://url...
Cloning into 'repo'...
fatal: Authentication failed for 'https://url...'
我已经检查了我的配置文件,仓库的用户名和密码都是正确的,但是克隆仓库却无法工作。
您有什么建议可以立即采取吗?
我正在尝试克隆一个git仓库,但它一直报错说认证失败..
以下是错误信息:
$ git clone https://url...
Cloning into 'repo'...
fatal: Authentication failed for 'https://url...'
问题11403407的答案解决了这个问题。
对我有效的代码如下:
git config --system --unset credential.helper
这里使用--system
很重要,因为--global
无法生效。
感谢大家的帮助,尤其是@Todd!:)
[credential] helper =
放置在等号后面没有值的位置,具有相同的效果。 - rbennett485