fatal: The remote end hung up unexpectedly MiB fatal: early EOF fatal: index-pack failed解决方案

某些仓库从github下载,包体积比较大,且有以下报错

fatal: the remote end hung up unexpectedlyMiB | 8.00 KiB/s
fatal: early EOF
fatal: index-pack failed

修改全局配置

//httpBuffer加大
git config --global http.postBuffer 524288000
//压缩配置
git config --global core.compression -1

如果是因为速度慢导致该错误,搞个梯子加速或者直接迅雷下载相应的zip文件

论读书
睁开眼,书在面前
闭上眼,书在心里
原文地址:https://www.cnblogs.com/YC-L/p/14403096.html