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