git pull的时候报错:fatal: protocol error: bad pack header

remote: Counting objects: 146, done.

remote: fatal: unable to create thread: Resource temporarily unavailable

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: protocol error: bad pack header

首先需要你在git bash中设置下命令(在服务端设置,不是客户端):

git config --global pack.windowMemory "100m"

git config --global pack.packSizeLimit "100m"

git config --global pack.threads "1" 

如果还不是不行,可能是服务端的git版本有问题,安装最新的git并执行上面的命令

猜你喜欢

转载自aigo.iteye.com/blog/2266088