美文网首页
Git错误:提示correct username or pass

Git错误:提示correct username or pass

作者: 爱学习的蹭蹭 | 来源:发表于2023-12-21 10:21 被阅读0次

提交代码提示解决方法:

remote: Incorrect username or password ( access token )

问题描述:在第一次输入账号密码,但是输入错误,系统自动保存了错误账号密码输入,当你需要时,访问的是错误的输入。

1、解决方法一:禁止自动保存密码

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凭据设置

1、控制面板->用户账户->凭据管理器->Windows凭据

2、普通凭据下git:https://github.com/或git:https://gitee.com/

删除操作:点击删除->git push origin master->重新弹出输入账号密码界面

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

相关文章

网友评论

      本文标题:Git错误:提示correct username or pass

      本文链接:https://www.haomeiwen.com/subject/mngxndtx.html