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->重新彈出輸入賬號密碼界面

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM