In the process of using git, fatal: protocol error: bad pack header always appears, which makes git unable to update and upload. See the following for specific error reports:
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
Try many ways online, such as the following:
git config --global pack.windowMemory "100m" git config --global pack.packSizeLimit "100m" git config --global pack.threads "1"
I’ve tried to think it’s a version problem, but check my git version. Centos7 uses Yum to install the same version.
None of them have been solved.
So I looked at the memory. Although it was still enough, there was no other way. So I upgraded the machine from 1c4g to 1c8g. After the upgrade, the problem was solved.
It seems that there is still not enough memory. It may be solved by restarting and releasing memory, but there is no attempt here
Similar Posts:
- Git Fatal: The remote end hung up unexpectedly [How to Solve]
- fatal: Not a git repository (or any of the parent directories): .git
- [Solved] Github Push Error: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
- GitHub# fatal: ‘origin’ does not appear to be a git repository
- git commit–fatal: unable to auto-detect email address
- [Solved] Git push origin master fatal: ‘origin’ does not appear to be a git repository fatal…
- [Solved] npm install Error: github requires permissions, Permission denied (publickey)
- [Solved] Git pull fatal: refusing to merge unrelated histories
- [Solved] Git Clone Error: Please make sure you have the correct access rights and the repository exists.
- git Please tell me who you are [How to Solve]