error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401


error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401

error: RPC failed; HTTP 401 curl 22 The requested URL returned error: 401
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

同事提交代码时发生这个错误。

导致这个发生的原因是:修改了git账号的密码(或者是第一次让输入密码的时候没有输入正确)
当我们输入密码之后,无论对与错,git都会把密码保存在windows的缓存中。

解决方案(windows):
控制面板 --> 用户账户 --> 管理Windows凭据

使用命令

网上查到的大多数是让输入命令:git config --global credential.helper store
但是这个只是设置 会存储 账号密码,我自己这里并没有让重新输入账号密码,可能还是因为Windows存储了。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM