最近使用Gitlib出现如下报错问题:

remote: Enumerating objects: 2889, done.
remote: Counting objects: 100% (2889/2889), done.
remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

修复方法,在gitlab服务器中执行:

git config --global pack.windowMemory "100m"
git config --global pack.SizeLimit "100m" 
git config --global pack.threads "1"