0
点赞
收藏
分享

微信扫一扫

git报错fatal protocol error bad pack header

科牛 2022-07-12 阅读 80

在使用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_ide

都没有解决。

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

git报错fatal protocol error bad pack header_git_02

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

作者:小家电维修

转世燕还故榻,为你衔来二月的花。



举报

相关推荐

0 条评论