zoukankan      html  css  js  c++  java
  • 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存储了。

  • 相关阅读:
    hdu 1286
    hdu 1420
    hdu 2068
    hdu 1718
    hdu 1231
    hdu 1072
    HDOJ 350留念
    hdu 1898
    hdu 1593
    帮助理解git的图
  • 原文地址:https://www.cnblogs.com/xguoz/p/13647812.html
Copyright © 2011-2022 走看看