rpc failed; http 401 curl 22 the requested url returned error: 401 原因 解法 參考連結

git push , Error

fatal: The remote end hung up unexpectedly

fatal: The remote end hung up unexpectedly

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

原因

  1. 上傳BUFFER滿了
  2. Credential 快取住了

解法

  1. 加大傳輸Buffer

    1
    2
    [http]
    postBuffer = 524288000
  2. Open git bash , key commant

1
$git credential-manager uninstall

參考連結

https://blog.csdn.net/zcmain/article/details/76855595

https://stackoverflow.com/questions/15381198/remove-credentials-from-git