今天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.