关于git操作账号密码变更导致git push时报错error: RPC failed; HTTP 403 curl 22 The requested URL returned error: 403
2020-07-14 06:29
2101 查看
问题简述:当操作的电脑git账号密码发生变更时,比如新入职公司接手前同事电脑设备,进行代码git push上传时,可能会发生如下报错。
刚开始查询的结果是权限问题导致的,进过git的配置文件修改发现没有起什么作用,经过一番痛苦的摸索发现可能是之前用户登陆github保存了账户密码,导致现在的操作无法进行,于是尝试新的解决办法。
第一步,在控制面板里找到 凭据管理器 点击
第二步 删除原有的github登录信息。
再次在目标文件进行push ,输入自己的账号(邮箱)和密码操作成功。
注意这是可能你会发现提交到github的用户名显示的是之前用户的,这是需要到本机git的配置文件 .gitconfig 进行用户名修改。
不知道位置的可以在系统盘里全局搜索。
修改为自己的用户名
这样提交的用户名就是自己的了。
相关文章推荐
- 使用git报错error: RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out
- git push错误:RPC failed; HTTP 401 curl 22 The requested URL returned error: 401 The remote end hung up
- git 错误:error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
- git push错误:RPC failed; HTTP 401 curl 22 The requested URL returned error: 401 The remote end hung up
- GitLab 使用git push 出现RPC failed; HTTP 500 curl 22 The requested URL returned error: 500
- error: RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error
- 关于使用Git的时候出现"HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large"的解决方法
- git push报错:error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401
- error: RPC failed; HTTP 411 curl 22 The requested URL returned error: 411 Length Required
- Git提交代码push的时候报错:HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
- git 提交失败 HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
- git clone 遭遇 RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out The
- git 下载的太大的文件RPC failed; HTTP 504 curl 22 The requested URL returned error: 504 Gateway Time-out
- 解决RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large问题
- Failed with error: fatal: unable to access 'xxxx.git/': The requested URL returned error: 403
- RPC failed; HTTP 500 curl 22 The requested URL returned error: 500 Internal Server Error
- (原)使用TortoiseGit提交代码push的时候报错:HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
- Git出现The requested URL returned error: 403
- git push到远程仓库时出现unable to access 'https://github.com/**': The requested URL returned error: 403
- GitHub 在使用命令行 git push 时报错:The requested URL returned error: 403