So I was having an error trying to push my project to GITLAB
(Error reproduced below)
$ git push -u origin master
Enumerating objects: 113, done.
Counting objects: 100% (113/113), done.
Delta compression using up to 8 threads
Compressing objects: 100% (95/95), done.
Writing objects: 100% (113/113), 58.19 KiB | 1.02 MiB/s, done.
Total 113 (delta 11), reused 0 (delta 0)
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date
HOW I FIXED IT - copy paste the below command
git config --global http.postBuffer 157286400
I made use of the above git command
What It does is that it Increase the Git buffer size to the largest individual file size of your repo
Top comments (13)
It's was not worked for me. But worked downgrade version of HTTP from 2 to 1.1:
$ git config --global http.version HTTP/1.1
After it push was ok and I have changed HTTP version to 2 again:
$ git config --global http.version HTTP/2
Thanks a lot man, it worked for me too.
This worked for me too. Thanks!
This worked for me too. Thanks!
This worked for me. Thanks!
It did not work for me neither.
Thanks for the post.
Meanwhile the above solution didn't work for me but rather found another solution...
git config --global http.postBuffer 100000000
Reference : https://stackoverflow.com/questions/15240815/git-fatal-the-remote-end-hung-up-unexpectedly?page=1&tab=votes#tab-top
Thanks
degrading the http.version is the only practical way i found
thanks for the suggestion
Thanks a lot. This worked for me! 👍🏾
You Welcome
Thank you! :)
Worked for me. Thanks!
Thank you ! <3