码迷,mamicode.com
首页 > 其他好文 > 详细

Git push “fatal: Authentication failed ”

时间:2019-07-02 22:52:11      阅读:128      评论:0      收藏:0      [点我收藏+]

标签:git push   pre   ati   using   tac   access   repo   word   instead   

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 git@github.com:user/repo.git  

技术图片

## 参考资料

[1].Git push results in “Authentication Failed”

Git push “fatal: Authentication failed ”

标签:git push   pre   ati   using   tac   access   repo   word   instead   

原文地址:https://www.cnblogs.com/OneFri/p/11123584.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!