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 unexpectedly
fatal: The remote end hung up unexpectedly
It's so annoying. Anyone knows how to fix this?
Update After I googled, I read that running git config --global http.postBuffer 524288000
could solve the problem. But even after I ran that command, I still met the problem.
Use git:// or git+ssh://, not https
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
.
Hope it helps somebody.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With