远程提交到github时,因为一时没有弄清楚,输入了错误的密码,然后一直说无法认证,报错:fatal: Authentication failed for。
解决办法(先查看用户账户和密码是否是GitHub的)
输入:
git config --list
更改为正确的账号:
git config --global user.name [username]
git config --global user.email [email]
如果还是在push试报错fatal: Authentication failed for
输入:
git config --system --unset credential.helper
阅读进度 0%
![[小抄] 常见的 Git 命令](https://levi-oss-1301066479.cos.ap-guangzhou.myqcloud.com/articleImages/Snipaste_2024-01-16_10-53-44.png)


private note
交流
文章暂不开放公开评论。如果你有想法、问题或建议,欢迎私下联系站长。
联系站长