4

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

MomasVII
  • 4,641
  • 5
  • 35
  • 52

1 Answers1

3

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)
Saurabh P Bhandari
  • 6,014
  • 1
  • 19
  • 50
  • I actually did solve this earlier with your third point. I made an empty repo and transferred all my files into it and pushed them all over 40 commits. It sucked but I have version control again so I'm happy. I have the broken one still so might try your suggestions just so I know for next time, Thanks – MomasVII Oct 08 '19 at 00:39
  • @ThomasByy, Any of the above points worked for the broken repo ? – Saurabh P Bhandari Oct 10 '19 at 10:27