error: RPC failed; curl 18 transfer closed with outstanding read data remaining

KyleBear@BEAR-PC MINGW64 ~/Desktop
$ git clone https://github.com/KarlRixon/MeshViewer.git
Cloning into 'MeshViewer'...
remote: Enumerating objects: 127, done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

无论是直接下载zip压缩包到本地还是用git clone到本地,网速慢就算了,还一直出错,重复了好多次后一直这样

解决方案

  • 首先考虑网速慢导致的超时问题

      git config --global http.lowSpeedLimit 0
      git config --global http.lowSpeedTime 999999
  • 如果还是出错可能是缓存区溢出

      git  config --global http.postBuffer 24288000
  • 可以查看配置是否已经修改成功

      git config --list
Last modification:November 17th, 2020 at 03:10 pm