Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RPC failed; result=28, HTTP code = 0

Tags:

git

github

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.

like image 582
Petra Barus Avatar asked Oct 09 '11 01:10

Petra Barus


2 Answers

Use git:// or git+ssh://, not https

like image 116
Lazy Badger Avatar answered Nov 09 '22 17:11

Lazy Badger


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.

like image 39
Abhijith Sasikumar Avatar answered Nov 09 '22 17:11

Abhijith Sasikumar