用Git下项目时遇见的问题
1.下载时出现remote: Enumerating objects: 11353, done.remote: Enumerating objects: 11353, done.
remote: Enumerating objects: 11353, 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
或者:
remote: Enumerating objects: 11353, done.
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
解决方法:
1.我上网找了一些答案,发现是缓存给的不够导致的,设置大一点
git config --global http.postBuffer 2097152000 # 2GB
git config --global http.postBuffer 3194304000 # 3GB
网上还有一种说法是网络太慢了,如果上面这种不能解决参考下面这个网站
https://www.cnblogs.com/qianshouxiuluo/p/11778559.html