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.

important GIT commands

see tutorials here

git config –global “Your Name”
git config –global “”

for linux :
git config –global core.autocrlf input
git config –global core.safecrlf true

for windows :
git config –global core.autocrlf true
git config –global core.safecrlf true
Continue reading “important GIT commands”


Up ↑

%d bloggers like this: