[Resolved] The remote end hung up unexpectedly - GIT

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:

Error:

 GIT error: fatal: The remote end hung up unexpectedly

Solution:

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 on Facebook2Share on Google+0Tweet about this on TwitterShare on StumbleUpon1Share on LinkedIn0Share on Tumblr0Pin on Pinterest0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan
Loves Linux, Blogging, Traveling, Hiking and sharing Knowledge!

Leave a Reply

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