远程提交到github时,因为一时没有弄清楚,输入了错误的密码,然后一直说无法认证,报错:fatal: Authentication failed for。

解决办法(先查看用户账户和密码是否是GitHub的)

输入:

Shell
git config --list

更改为正确的账号:

Shell
git config --global user.name [username]
git config --global user.email [email]

如果还是在push试报错fatal: Authentication failed for

输入:

Shell
git config --system --unset credential.helper
阅读进度 0%