遇到问题:push的时候出现fatal: Authentication failed for
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                遇到问题:push的时候出现fatal: Authentication failed for
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.                        
                                GitHub push代碼發生錯誤:fatal: Authentication failed for 'https://github.com/ …
使用的https提交,在用SourceTree提交代碼時候發生錯誤,返回的錯誤提示說:
fatal: Authentication failed for 'https://github.com/ ...一、解決方案,重新執行git config命令配置用戶名和郵箱即可:
git config -–global user.name "xxx" git config –-global user.email "xxx@xxx.com"二、解決二
遇到問題:push的時候出現fatal: Authentication failed for 'https://git.oschina.net/andthink/zsxw_android.git/'問題。
我第一反應是去看我的配置,我檢查了我的賬戶配置,重新設置了git config --global user.name "xxx"和git config --global user.email “xxx”,并git remote add origin https://git.oschina.net/xxxx后沒有任何改變。
在國內很多網站看了下都不行,就去stackoverflow上一看。原來是我設置了雙因子身份認證Two-Factor Athentication。雖然我都不知道什么時候設置的。
 解決辦法:
最終解決方案
控制面板 憑據管理器
 
刪除登錄記錄后,會重新輸入賬號密碼
 
 完美解決!
總結
以上是生活随笔為你收集整理的遇到问题:push的时候出现fatal: Authentication failed for的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: Vue+ElementUI+Spring
- 下一篇: 他,跳槽季用这样的方法复习进了阿里
