Git push fails with “fatal: early EOF” when PUSHing but only on one file

淺唱寂寞╮ 提交于 2019-11-29 03:42:05

(This answer is a workaround, not a solution.)

I've just had the same problem (can't push my changes anymore using TortoiseGit/msysgit). Since the problem occurs during unpacking, it can be avoided by disabling compression:

  1. Context Menu on the folder/TortoiseGit/Settings
  2. "Edit local .git/config"
  3. Add compression = 0 to the [core] section.

Obviously, disabling compression might affect performance, so use this workaround at your own discretion.

I'm just going to add what worked for me in case someone else stumbles upon this problem.

Execute the following on the command line to make large files work when you get the above error.

git config http.postBuffer 524288000

See https://groups.google.com/forum/#!topic/gitlabhq/tNfe2POcY4E.

NitinK

It's possible that you are overflowing the postbuffer.

The following command fixes the symptom for me:

git config http.postBuffer 524288000

See this related issue: https://stackoverflow.com/a/3605544/193785

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!