为什么我会“无法连接套接字”当我尝试通过git URL克隆? [英] Why do I get "unable to connect a socket" when I try to clone via a git URL?
本文介绍了为什么我会“无法连接套接字”当我尝试通过git URL克隆?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我尝试从GitHub中克隆一个项目时,它给了我以下错误。
When I try to clone a project from the GitHub, it gives me the following error.
:git clone git://github.com/project.git
github.com[0: 207.97.227.239]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
但是,如果我使用相应的HTTP URL,那很好:
But if I use the corresponding HTTP URL, it's fine:
:git clone http://github.com/project.git
通过git URL克隆我应该怎么做?
What should I to do to clone through a git URL?
推荐答案
看起来像是有网络问题,因为默认情况下,git协议使用端口9418.看起来您的流量在该端口被阻止。
Looks like there is a network problem because the git protocol, by default, uses the port 9418. Looks like your traffic is blocked on that port.
这篇关于为什么我会“无法连接套接字”当我尝试通过git URL克隆?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文