The remote end hung up unexpectedly – GIT

The problem is due to git/https buffer settings. In order to solve it (taken from Git fails when pushing commit to github)

git config http.postBuffer 524288000

error: failed to push some refs to ‘

Just a reminder to myself:

git push origin master
Enter passphrase for key ‘/root/.ssh/id_rsa’:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to ‘’
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the ‘Note about
fast-forwards’ section of ‘git push –help’ for details.


git push -f
git push origin +master

These will both ignore the check for a non-fast-forward push, and update what’s on the server to your new A’ revision, abandoning the A revision so it will eventually be garbage collected.

Up ↑

%d bloggers like this: