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->重新彈出輸入賬號密碼界面
修改操作:點擊修改->填寫正確的賬號密碼->保存