Why does git push fails with “Operation timed out”?

自作多情 提交于 2019-12-10 14:57:17

问题


MacMini $ git push origin master
Counting objects: 1916, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1751/1751), done.
Read from remote host codebasehq.com: Operation timed out
fatal: The remote end hung up unexpectedly
error: pack-objects died of signal 13
error: pack-objects died with strange error
error: failed to push some refs to 'git@codebasehq.com:xx/xx/xx.git'

回答1:


Contemporary UTM firewalls can mess with outgoing data if they falsely identify traces of malware, packed data, or insecure commands in the stream... and these false alarms happen pretty frequently. Such security devices on your network or the destination side could explain why some projects push up okay and others are dropping the connection.

If that's the case, you may avoid the trigger if you use a different protocol for this connection, e.g. ssh:// or https:// instead of git://.




回答2:


Looks like you have a bad network connection. Can you access codebasehq.com, especially with the network protocol you use. Have you a correct proxy server configuration? Can you pull other projects?



来源:https://stackoverflow.com/questions/3140715/why-does-git-push-fails-with-operation-timed-out

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!