美文网首页
Git 报错remote: HTTP Basic: Access

Git 报错remote: HTTP Basic: Access

作者: OoYoO | 来源:发表于2020-08-11 13:20 被阅读0次

问题描述
git pull 报

remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://xxxx/project.git/'

错误原因:
本地git配置的用户名、密码与gitlabs上注册的用户名、密码不一致(登录gitlab.com时,提示输入用户名和密码,由于忘记了登录密码,在页面上重置导致本地项目未更新)

解决方案:
1、此方案,试了没有反应

git config --system --unset credential.helper

2、执行后重新输入用户名和密码,解决。

git config --global http.emptyAuth true

参考
https://www.cnblogs.com/lydiawork/p/10287797.html

相关文章

网友评论

      本文标题:Git 报错remote: HTTP Basic: Access

      本文链接:https://www.haomeiwen.com/subject/xgoedktx.html