【解决】Git failed with a fatal error. Authentication failed for ‘http://......’


今天在visual studio中运行项目,打算pull最新的代码的时候,报错:

Git failed with a fatal error. Authentication failed for ‘http://......’

1. 首先你要看一下是不是自己的账号密码错误,不匹配

git config --global --list

2. 如果账号密码正确则尝试一下这个解决方案:

git config --system --unset credential.helper

3. 有些人可能会出现新的问题:

error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied.

可以通过路径 Control Panel | User Accounts | Credential Manager 在 Generic Credentials找到对应的权限 

Figure: 移出出错项目的对应用户凭证

note: 当然也可以通过 Control Panel | All Control Panel Items | Credential Manager 找到对应路径

接下来再尝试pull的操作重新输入账号密码,问题就被解决了

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM