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

 

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




git clone的时候遭遇fatal: early EOF fatal: index-pack failed解决办法

报错信息:

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

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

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




git clone的时候遭遇fatal: early EOF fatal: index-pack failed解决办法  macOS 进行 git clone 时报错 fetch-pack: unexpected disconnect while reading sideband packet
    




git clone的时候遭遇fatal: early EOF fatal: index-pack failed解决办法

 

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

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

 

相关文章:

  • 2022-12-23
  • 2021-04-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-01-14
  • 2021-07-19
  • 2022-01-03
  • 2022-12-23
  • 2021-10-31
相关资源
相似解决方案