Reputation: 31736
Git works fine on my dev box, but ever so often, I'll go to push something to the repository and it will go through the motions like its actually pushing, but then it will get stuck like this
$ git push origin master
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 544 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
...
...
It will just sit here for a couple of minutes then spit out this error.
Read from remote host xxxx.com: Connection reset by peer
fatal: The remote end hung up unexpectedly
Restarting my computer or coming back and trying it hours later usually works.
It really ruins my workflow though.
Any ideas?
Upvotes: 0
Views: 1490
Reputation: 328556
Connection reset by peer
means that the connection to the other side unexpectedly died.
There is a network problem between your computer and example.com
or the GIT server is unstable for some reason. Check the logs and try to ping the server.
Upvotes: 2