How to fix the error fatal: The remote end hung up unexpectedly

The error fatal: The remote end hung up unexpectedly occurs when the default file post size has been exceeded.

Solution

To solve the issue, change the settings of your buffer so that you have enough space available.

If you are posting over HTTP, navigate to the repository and type the following in the terminal:

git config http.postBuffer 524288000

If you are posting over SSH, navigate to the repository and type the following in the terminal:

git config ssh.postBuffer 524288000

You can increase the buffer value up to 2000000000.

Free Resources

Copyright ©2025 Educative, Inc. All rights reserved