Git push “fatal: Authentication failed ”
Posted onefri
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Git push “fatal: Authentication failed ”相关的知识,希望对你有一定的参考价值。
Git push “fatal: Authentication failed ”
问题原因
- 之前设置了两步验证
If you enabled two-factor authentication in your Github account you won't be able to push via HTTPS using your accounts password. Instead you need to generate a personal access token. This can be done in the application settings of your Github account. Using this token as your password should allow you to push to your remote repository via HTTPS. Use your username as usual.
解决方法
- 更新分支
git remote -v
git remote remove origin
git remote add origin [email protected]:user/repo.git
## 参考资料
[1].Git push results in “Authentication Failed”
以上是关于Git push “fatal: Authentication failed ”的主要内容,如果未能解决你的问题,请参考以下文章