2021年Git报错:remote: HTTP Basic: Access denied的解决方法
remote: HTTP Basic: Access deniedfatal: Authentication failed for 'http://localhost/xxx.git/'问题出现原因:本地git账号信息与远程git仓库账号不一致导致的。解决方案:win10系统=》控制面板=》用户账户=》凭据管理器1、配置用户信息git config --global user.name [user
文章共222字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'http://localhost/xxx.git/'
问题出现原因:
本地git账号信息与远程git仓库账号不一致导致的。
解决方案:
win10系统=》控制面板=》用户账户=》凭据管理器
1、配置用户信息
git config --global user.name [username]
git config --global user.email [email]
2、查询用户信息
git config --list
3.重新配置本地git仓库账号密码
git config --system --unset credential.helper
更多推荐
已为社区贡献1条内容
所有评论(0)