git push 遭遇 fatal: Authentication failed

Posted xujinglog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git push 遭遇 fatal: Authentication failed相关的知识,希望对你有一定的参考价值。

push远程仓库遇到报错

remote: Invalid username or password.
fatal: Authentication failed

1、首先配置用户信息

git config --global user.name [username]

git config --global user.email [email]

2、查询用户信息

git config --list

然后
3、如果push遇到在输入密码后会报这个错误fatal: Authentication failed for的话

解决办法:

git config --system --unset credential.helper

重新输入账号密码



以上是关于git push 遭遇 fatal: Authentication failed的主要内容,如果未能解决你的问题,请参考以下文章