gitlab issue
when you pull or clone a big repo, you will suffer this problems:
Cloning into ‘F:\Git\GitProject****’…
remote: Counting objects: 683, done.
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 EOF
remote: warning: suboptimal pack - out of memory
remote: aborting due to possible repository corruption on the remote side.
fatal: index-pack failed
git did not exit cleanly (exit code 128) (37924 ms @ 2016/11/2
#
Reason:
Git clone compresses the data while cloning the repository
It compresses the data on the server memory before receiving the data/files.
If the server has out of memory you will get the above error while packing the objects
You can fix the issue by making git clone the repository without packing the objects on the server with the following.
#
So
git config –global pack.window “0” (run in git client, never try on windows client . maybe good in linux)
or
you can add Mem on git server.
I solve this problems only add swap on git server.
本文介绍了解决在克隆大型Git仓库时遇到的内存不足导致的错误的方法。通过调整客户端配置避免服务器端打包对象,或者增加服务器内存来解决这一问题。
207

被折叠的 条评论
为什么被折叠?



