The error fatal: The remote end hung up unexpectedly occurs when the default file post size has been exceeded.
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