The remote end hung up unexpectedly git

Other solutions didn’t work in my case, doing a garbage collection fixed it for me:

git gc --aggressive