部署git服务器,部署了一个工程在服务器上,同事git clone时候出现了如下错误:
Cloning into 'dap'...
remote: Counting objects: 627, done.
remote: Compressing objects: 100% (618/618), done.
error: pack-objects died of signal 9.81 MiB | 144.00 KiB/s
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOFs: 99% (621/627), 8.05 MiB | 113.00 KiB/s
fatal: index-pack failed
查了问题后更改本地设置:
git config --global pack.packSizeLimit 50m
git config --global pack.windowMemory 50m
git config --global core.compression 9
git config --global pack.threads "1"
git config --global pack.window "0"
重新git clone 的时候出现如下问题:
Cloning into 'dap'...
remote: Counting objects: 627, done.
remote: Compressing objects: 100% (618/618), done.
remote: aborting due to possible repository corruption on the remote side.
error: pack-objects died of signal 9
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
fatal: early EOFs: 99% (621/627), 8.05 MiB | 157.00 KiB/s
fatal: index-pack failed
再出现这个的时候google了很久发现没啥解决方案后,
研究了下,尝试了只clone相应的分支的代码可以成功或者执行
git clone --depth 1 加上地址也可以。