提交代碼到github抱歉remote: Invalid username or password. fatal: Authentication failed for

今天git push 到github倉庫報錯,提示需要輸入用戶密碼,出現如下提示,開始以爲是密碼記錯了,就直接登錄github網頁是ok的。

remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/xxx/xxx/'

在網上也看了些,發現了原來輸入的密碼不是登錄密碼是personal access token。之前創建的personal access token看不到了,重新生成,點擊右上角頭像,選擇Settings->Developer settings->Personal access tokens,單擊Generate new token,勾線rep基本上就滿足了,單擊Generate token,會跳出新頁面,記錄下new token,重新push或pull,輸入new token.基本上就OK.

 

 

 

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