fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
这个错误通常是由于网络不稳定或 Git 缓冲区设置过小导致的。以下是尝试解决方案:
增加 Git 缓冲区大小:
git config --global http.postBuffer 524288000
// 配置压缩级别:
git config --global core.compression 0
// 使用深度为1的克隆(只克隆最新版本):
git clone --depth 1 <你的ssh地址>
cd <项目目录>
git fetch --unshallow