git Remote: HTTP Basic: Access denied Git failed with a fatal error.

时间:2022-01-14 07:55:18

解决方案:

git clone 项目失败,报下面的错误信息:
$ git clone http://192.168.0.141/xxxx.git
Cloning into 'appEnterprise'...
remote: HTTP Basic: Access denied
fatal: Authentication failed for ...
因为之前输入错误的gitlab用户名和密码,第二次clone不弹框提示输入用户名和密码的解决方案。

打开凭据管理器 - Windows凭据,找到对应的凭据,删除掉,重新clone,就会弹框
提示用户名和密码。

git Remote: HTTP Basic: Access denied Git failed with a fatal error.
image.png
git Remote: HTTP Basic: Access denied Git failed with a fatal error.

链接:https://www.jianshu.com/p/08068ebe5f84