操作:
java
git clone https://github.com/...
报错:
java
remote: Enumerating objects: 20, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (20/20), 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

原因:
➡️原因1:由于git默认缓存大小不足导致的,使用下面的命令增加缓存大小。
➡️原因2:执行上面命令如果依旧clone失败,可能网络下载速度缓慢。
解决:
java
git config --global http.postBuffer 20000000

➡️出现以下页面表面已克隆成功!
