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:
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.
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.
LinkedInRelated Article - Git Error
- How to Fix: Git Is Not Recognized as an Internal or External Command Error
- How to Resolve Git Status Unmerged Paths
- Bower: ENOGIT Git Is Not Installed or Not in the PATH
- How to Fix Another Git Process Seems to Be Running in This Repository Error
- How to Fix Fatal: Origin Does Not Appear to Be a Git Repository Error in Git
- How to Fix Fatal: The Current Branch Master Has No Upstream Branch Error in Git