Ошибка fatal: The remote end hung up unexpectedly при выполнении git push mht

git config http.postBuffer 262144000
// или
git config --global http.postBuffer 262144000

Сжать папку .git

Удалите ненужные бренчи.
$ git gc --aggressive --prune