Search code examples
githubpushatlassian-sourcetreegit-pushgithub-for-windows

Unable to push to github, Remote end hung up unexpectedly


I'm trying to upload a relatively large Unreal engine 4 project through sourcecontrol on Github.

It uploads completely, and when it reaches 100% it fails giving me this error:

Writing objects: 100% (8901/8901), 11.30 GiB | 33.67 MiB/s   
Writing objects: 100% (8901/8901), 11.32 GiB | 31.25 MiB/s, done.
Total 8901 (delta 632), reused 8579 (delta 403)
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: RPC failed; curl 56 Send failure: Connection was reset
Everything up-to-date

(The error was parsed as 4: The remote disconnected. Check your Internet connection and try again.)

My connection is fine, because I tried it several times, and it always fails at 100%.

I tried it with Sourcetree and Github Desktop, and it produces the same error.


Solution

  • Check first if this is a client setting issue:

    cd /path/to/your/repository
    git config http.postBuffer 524288000
    

    (and you can increase that setting since Git 2.13)

    Also make sure to not exceed a GitHub size limit.