1. 程式人生 > >Git錯誤:Incorrect username or password ( access token )

Git錯誤:Incorrect username or password ( access token )

git push origin master

remote: Incorrect username or password ( access token )

問題描述:在第一次輸入賬號密碼,但是輸入錯誤,系統自動儲存了錯誤賬號密碼輸入,當你需要時,訪問的是錯誤的輸入。

解決方法一:禁止自動儲存密碼

git config --global -l(檢視配置資訊)

git config --system --unset credential.helper

git push origin master

Username for 'https://git.com': JIQIU(回車鍵輸入密碼)

恢復自動儲存密碼

git config --global credential.helper manager

解決方法二:Windows憑據設定

控制面板->使用者賬戶->憑據管理器->Windows憑據

普通憑據下git:https://github.com/或git:https://gitee.com/

刪除操作:點選刪除->git push origin master->重新彈出輸入賬號密碼介面

修改操作:點選修改->填寫正確的賬號密碼->儲存