在进行git clone 下载项目是,出现了这样的错误:
error: RPC failed; curl 56 Recv failure: Connection was reset fatal: The remote end hung up unexpectedly快速方案:或者将http.postBuffer调整的更大:
更多信息:
从, 可以了解到:Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system.For requests larger than this buffer size, HTTP/1.1 andis used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.翻译过来就是HTTP传输的缓冲区大小,避免在本地创建大量的包文件。表示curl接收错误。
参考资料
The remote end hung up unexpectedly while git cloning
「滋磁一下」
领取专属 10元无门槛券
私享最新 技术干货