git在Windows上出现问题...推送不完成/超时(Problem with git on windows … pushes don't complete/timeout)

编程入门 行业动态 更新时间:2024-10-27 04:25:29
git在Windows上出现问题...推送不完成/超时(Problem with git on windows … pushes don't complete/timeout)

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.

更多推荐

本文发布于:2023-08-07 23:41:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1466380.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Problem   Windows   git   windows   timeout

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!