You need to increase the ssh/http buffers:

git config --global http.postBuffer 524288000
git config --global ssh.postBuffer 524288000

From: https://stackoverflow.com/questions/15240815/git-fatal-the-remote-end-hung-up-unexpectedly