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

作者: 温新

分类: 【git】

阅读: 56546

时间: 2020-04-22 15:37:32

今天使用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对应的凭据,将其删除就行了。

我是夕阳何处寻,期待和优秀的你一起同行!

夕阳何处寻

2020年04月22日

请登录后再评论