iphone git clone three20项目主机无法访问
我只是想在这里做第一步,介绍如何将其添加到我的项目中: 但是,当我在终端上运行此命令时:iphone git clone three20项目主机无法访问,iphone,xcode,git,three20,host,Iphone,Xcode,Git,Three20,Host,我只是想在这里做第一步,介绍如何将其添加到我的项目中: 但是,当我在终端上运行此命令时:git clonegit://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/th
git clonegit://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采用这种格式,不包括协议前缀,并将用户名转换为类似端口号的内容。这对我很有效。您是否在防火墙后面阻止端口9418?尝试在此端口上telnet github.com。如果超时,此端口可能已被阻止。@是的,我认为这就是公司防火墙阻止此端口的问题。感谢您的建议,但尝试了此操作,并将其克隆为320。。。错误:访问时无法解析主机“github.com”。致命错误:HTTP请求失败编辑您的网络有问题。这对我来说还行。