Git在我的开发框中工作得很好,但是经常这样,我会去推送一些东西到存储库中,它会像其实际推动一样运动,但是它会像这样卡住
$ git push origin master 计数对象:9,完成。 增量压缩使用多达2个线程。 压缩对象:100%(5/5),完成。 写对象:100%(5/5),544字节,完成。 总共5(delta 3),重用0(delta 0) ... ...
它会坐在这里几分钟,然后吐出这个错误。
从远程主机xxxx.com读取:由对等方重置连接 致命的:远端意外挂断
重新启动计算机或在几小时后回来试用它通常很有用。 但它真的毁了我的工作流程。 有任何想法吗?
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?
最满意答案
Connection reset by peer的连接意味着与对方的连接意外死亡。
计算机和example.com之间存在网络问题,或者出于某种原因,GIT服务器不稳定。 检查日志并尝试ping服务器。
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.
更多推荐
发布评论