git报remote HTTP Basic Access denied错误的解决方法

今天使用git遇到一个问题,什么问题呢?且听我一一道来。

1)git pull 拉取报错

2)git push 报错

总之呢,就是什么也看干不了。这个问题可以首次遇到,查找了许多方法,最终还是找到了解决方法,同时网上的一些方法并没有解决问题,下面一一列出来,最后给出解决问题的方法。

报错信息:remote: HTTP Basic: Access denied fatal: Authentication failed for

 

解决方法1(我这里无效)

git config --system --unset credential.helper
git config --global credential.helper store

 

解决方法2 有效解决方法 删除对应凭证

win10的删除方法:

控制面板所有控制面板项凭据管理器windows凭据

找到git对应的凭据,将其删除就行了。

转载于:https://www.ziruchu.com/art/94

原文地址:https://www.cnblogs.com/xing-29391/p/15232459.html