I\'m trying to push my code into github, but almost everytime I meet this error
error: RPC failed; result=28, HTTP code = 0 fatal: The remote end hung up un
It is not necessary to use SSH here as mentioned in the accepted answer. Recently got stuck with the same issue. Increase the Http default 1 MiB buffer size to a large value:
git config --global http.postBuffer 1048576000
then try git push remote branch_name.
git push remote branch_name
Hope it helps somebody.