admin管理员组

文章数量:1794759

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

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

背景

由于一些zz行为,在开发的中途更改了本地的一些HTTPs://www.105188/biancheng/1137990.html style="color:#2aa0ea" target=_blank class=infotextkey>Git信设置。导致最终想提交代码时,Git 执行 git push 报错如下:

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

问题原因

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

解决方案

在本地仓库路径内输入:

git config --system --unset credential.helper

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

本文标签: 报错解决方法remoteGitHTTP