我只是想做第一步在这里如何添加There20到我的项目:Three20
然而,当我在终端:git clone git://github.com/facebook/three20.git
上运行它时,它说:
Cloning into three20...
fatal: Unable to look up github.com (port 9418) (nodename nor servname provided, or not known)
我也尝试了git://github.com/facebook/three20.git
,这打开了Xcode
,但主机不可达。
我当然可以访问github.com。
我做错了什么?
尝试使用https协议:
git clone https://github.com/facebook/three20.git
你可能在防火墙后面,阻止了git协议的访问
您也可以尝试:
git clone git@github.com:facebook/three20.git
我在子模块设置中遇到了类似的问题。我更改了配置文件,使子模块URL采用这种格式,排除了协议前缀并将用户名转换为端口号之类的内容。