How to Fix Fatal: The Remote End Hung Up Unexpectedly Error in Git

John Wachira Feb 02, 2024
How to Fix Fatal: The Remote End Hung Up Unexpectedly Error in Git

This article outlines solving the fatal: The remote end hung up unexpectedly error in Git. This error pops up when we push or pull large amounts of data.

It usually presents itself like this:

fatal The remote end hung up unexpectedly

Solve the fatal: The remote end hung up unexpectedly Error in Git

We can remedy this issue by increasing the buffer size to give us enough space.

For those using the HTTP protocol, go to your repo, open the terminal and run the command below.

$ git config http.postBuffer 524288000

If you are using an SSH protocol, run the command as shown below.

$ git config ssh.postBuffer 524288000

We can increase the buffer size up to 2000000000.

In conclusion, the fatal: The remote end hung up unexpectedly error occurs when we exceed the default post size when pushing or pulling.

To remedy this, you will have to increase the buffer size by tweaking your Git configuration file, as shown above.

Author: John Wachira
John Wachira avatar John Wachira avatar

John is a Git and PowerShell geek. He uses his expertise in the version control system to help businesses manage their source code. According to him, Shell scripting is the number one choice for automating the management of systems.

LinkedIn

Related Article - Git Error