Git:Access denied Authentication failed
电脑系统重装后,今天上传项目版本记录,发现被拒绝访问:“ HTTP Basic: Access denied fatal: Authentication failed for。。”
搜了下网上给的解决方案:“git config –system –unset credential.helper”。但在我git上运行此命令会报错:
error: could not lock config file C:/Program Files/Git/mingw64/etc/gitconfig: Permission denied
下搜这个报错,找到了解决方案:



原来登录凭据已被Windows记录,每次更新SSH密钥,除了要在git托管平台上更新公钥外还得在本地找到这里清除历史,再运行上述命令后,重新输用户名密码登录远程库。

 

posted on 2019-07-16 15:42  梁娜  阅读(5626)  评论(0编辑  收藏  举报