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
posted on 2021-08-02 19:16 CuriousZero 阅读(26039) 评论(0) 编辑 收藏 举报
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步