Git报错:remote: HTTP Basic: Access denied的解决方法

Git 执行 git pull 命令是报错如下:

remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://localhost/rep.git/'

问题原因:

账号密码验证不通过,密码或者权限不对,导致 Git 操作失败。

解决方案:

输入:git config --system --unset credential.helper

再次进行 Git 操作,输入正确的用户名,密码即可。

posted @ 2022-01-19 16:26  我的水杯没有水  阅读(566)  评论(0编辑  收藏  举报