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->重新弹出输入账号密码界面

修改操作:点击修改->填写正确的账号密码->保存

原文地址:https://www.cnblogs.com/ystao/p/13724445.html