[Resolved] The remote end hung up unexpectedly - GIT

Share with all..

GIT is one of the widely used version control system to track changes made in the source code. While using GIT, you may face following error while trying to execute any GIT command from GIT client:


 GIT error: fatal: The remote end hung up unexpectedly


To resolve the issue, increase the http post buffer size by executing below command and try pushing the code.

git config --global http.postBuffer 247286400

Please note that this issue is client specific and not server.

What is http.postBuffer?

Maximum size in bytes of the buffer used by smart HTTP transports when POSTing data to the remote system. For requests larger than this buffer size, HTTP/1.1 and Transfer-Encoding: chunked is used to avoid creating a massive pack file locally. Default is 1 MiB, which is sufficient for most requests.

Source - GIT Doc

It has been observed that this error occurs while executing any GIT command and not specific to any particular command. The http.postbuffer value can be increased if it doesn't work.


Found helpful? Don't forget to like & share the post!

Share with all..

About Abhijit Sandhan

Loves Open Source, Blogging, Traveling, Hiking and sharing Knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *