一、问题:
由于账号更改或其他原因导致提交代码时报错,账号密码验证不通过,密码或者权限不对,导致 Git 操作失败
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://localhost/repo.git/'
二、 解决方案
在本地代码仓库输入
git config --system --unset credential.helper
再次进行 Git 操作,输入正确的用户名,密码即可。