gitgithubfatal-errorgit-push

Issue with Git "fatal: The remote end hung up unexpectedly"


I have am facing issues while pushing my code to git here are things i have tried so far

No matter what i always get this same error, Here is the excate error i got in my last attempt.

Enumerating objects: 217, done.
Counting objects: 100% (217/217), done.
Delta compression using up to 4 threads
Compressing objects: 100% (211/211), done.
Writing objects: 100% (217/217), 10.77 MiB | 14.50 MiB/s, done.
Total 217 (delta 22), reused 0 (delta 0), pack-reused 0
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
fatal: the remote end hung up unexpectedly
Everything up-to-date

This issue is happening specifically for this particular repo / code.

When i try to push any other repos they work fine.

Also originally i was able to push to heroku whereas git always failed. Same thing with the fresh copies as well

Any Suggestions

EDIT1:

Well as a last resort i switched from my WIFI to Mobile data, to test the thoery that the issue may be realtred with my ISP blocking certain github server / IP, and to my surprise it went through and i was able to commit my code, thing is my mobile data is way slower due to mobile conntivity compared to my Wifi which is like 20+mbps.. so it cannot be said that the speed was the issue between these to ISP's, so as a quick conculsion i think my Wifi ISP is blocking the github website or some of its Ip address (i say this because some of my repo are getting updated but this particular one is not and this same particular repo can be updated via mobile data.)


Solution

  • As a last resort, I switched from my WiFi to mobile data in order to test the theory that the issue may be with my ISP. After this change, the commit went through!

    I am not sure what happened there, as my mobile data is far slower. To even call it 3G would be an understatement, and yet, somehow, it worked.

    I tried method again today as well, and it seemed to work. I still do not have a permanent fix, or even a good explanation, but at least this is a workaround.