macOS 进行 git clone 时报错 fetch-pack: unexpected disconnect while reading sideband packet

macOS 进行 git clone 时报错 fetch-pack: unexpected disconnect while reading sideband packet

   

报错信息:

error: 6496 bytes of body are still expectedMiB | 242.00 KiB/s
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: index-pack failed

查找原因:

1)因为当前clone文件夹的属性为“只读”问题?—— No,Pass 

 git clone操作出现fatal:index-pack failed错误解决方案:https://blog.csdn.net/liguangzhenghi/article/details/48286663

于是,开启文件夹为“读+写”:

  

2)使用如下方法好像成功一点点?

git clone的时候遭遇fatal: early EOF fatal: index-pack failed解决办法https://www.cnblogs.com/codedoge/p/11466086.html

首先关闭 core.compression

git config --global core.compression 0
然后使用depth这个指令来下载最近一次提交

git clone --depth 1 <repo_URI>
然后获取完整库

git fetch --unshallow 
最后pull一下查看状态,问题解决

git pull --all
原文地址:https://www.cnblogs.com/shenxiaolin/p/15091320.html