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

时间:2021-08-02 23:21:59   收藏:0   阅读:508

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!