Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git克隆致命错误,用户凭据正确_Git_Authentication - Fatal编程技术网

Git克隆致命错误,用户凭据正确

Git克隆致命错误,用户凭据正确,git,authentication,Git,Authentication,所以我试图克隆git存储库,但它不断抛出一个关于身份验证失败的错误 以下是错误: $ git clone https://url... Cloning into 'repo'... fatal: Authentication failed for 'https://url...' 我已经检查了我的配置以及存储库的用户名和密码是否正确,但不知何故克隆无法工作 关于我现在能做什么有什么建议吗 来自的答案解决了这个问题 适用于我的代码如下所示: git config --system --unset

所以我试图克隆git存储库,但它不断抛出一个关于身份验证失败的错误

以下是错误:

$ git clone https://url...
Cloning into 'repo'...
fatal: Authentication failed for 'https://url...'
我已经检查了我的配置以及存储库的用户名和密码是否正确,但不知何故克隆无法工作

关于我现在能做什么有什么建议吗

来自的答案解决了这个问题

适用于我的代码如下所示:

git config --system --unset credential.helper
--system
在这里很重要,因为
--global
不起作用


特别感谢大家的帮助!:)[credential]helper=在全局配置中的
=
之后没有值,具有相同的效果