在使用git的过程中,一直出现fatal: protocol error: bad pack header,导致git无法更新以及上传。具体报错见以下:

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 config --global pack.windowMemory "100m"
git config --global pack.packSizeLimit "100m"
git config --global pack.threads "1" 

也尝试过以为是版本问题,但是查看本人git 的版本,centos7使用yum安装都是都一个版本。

git报错fatal protocol error bad pack header

都没有解决。

于是看了一下内存,看着虽然还是很够,但是这里已经没有其它办法了,于是将机器由1C4G升级至1C8G,升级后问题解决。

git报错fatal protocol error bad pack header

看来感觉还是内存不够,可能重启释放了内存也能解决,但是这里没有去尝试

相关文章:

  • 2021-07-15
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-07-19
  • 2021-09-21
  • 2022-12-23
  • 2021-07-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案