POST git-receive-pack (chunked) fatal: The remote end hung up unexpectedly

Viewed 3214

I am trying to push some files that amount to around 200mb to github. The largest file pushed is 2mb so it's just a lot of smallish files(images). I get this error on 2 different computers. One wireless and one wired.

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks -c credential.helper= -c credential.helper="C:/Users/PCName/AppData/Local/ATLASS~1/SOURCE~1/GIT_EX~1/GIT-CR~1.EXE" push -v --tags origin master:master
Pushing to https://github.com/MyGitHubUsername/MyGitHubAddress.git
POST git-receive-pack (chunked)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

error: RPC failed; curl 55 SSL_write() returned SYSCALL, errno = 10053
Everything up-to-date
Completed with errors, see above.

I have tried the

git config http.postBuffer 100000000

command but still not working. My github space is this. But my repo size is quite large (< 20GB)

enter image description here

I have checked the related posts but the fixes don't seem to be working for me. Please help.

Thanks

1 Answers

You could try the following :

  • Increase the http.postBuffer size to this 524288000 or maybe double 1048576000 as mentioned here The remote end hung up unexpectedly while git cloning
  • Check the output of git fsck command, as a broken or a bad commit might cause errors too as mentioned here link
  • You can split your commit into several small commits and push them to remote. You could try this on a clone of your local repo. For example, instead of 10 images, commit 2 images at a time
  • Probably as a last resort, switch to a LINUX machine or VM and check if the error still persists (updating git might also help)
Related