git: Authentication failed for錯誤解決

1、當電腦有好幾個git賬號往不同倉庫提交時,經常會出現如下錯誤,而且一直提示,不給輸入密碼和賬號的機會

fatal: Authentication failed for

解決辦法:

git config --system --unset credential.helper

之後你在push就會提示輸入名稱和密碼

 

2、查詢用戶信息

git config --list

 

3、push時會提示賬號密碼,或者重新輸入賬號密碼

git config --global user.name [username]

git config --global user.email [email]

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章