iphone git clone Three20 项目主机无法访问
我只是想在这里执行第一步,了解如何将 There20 添加到我的项目中: Three20
但是,当我运行时在我的终端上:git clone git://github.com/facebook/third20.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。
我做错了什么?
I am simply trying to do step one here on how to add There20 to my project: Three20
However when I run this on my terminal: git clone git://github.com/facebook/three20.git
, it says:
Cloning into three20...
fatal: Unable to look up github.com (port 9418) (nodename nor servname provided, or not known)
I also tried with git://github.com/facebook/three20.git
, this opens Xcode
but gives host unreachable.
I can of course access github.com.
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试改用 https 协议:
您可能位于防火墙后面,阻止通过 git 协议进行访问。
Try using https protocol instead:
You may be behind a firewall that is blocking access via the git protocol.
您也可以尝试:
我在子模块设置方面遇到了类似的问题。我更改了配置文件,使子模块 URL 采用这种格式,排除协议前缀并将用户名转换为端口号之类的内容。这对我有用。
You can also try:
I had a similar issue with a submodule setup. I changed the config file such that the submodule URL is in this format, excluding the protocol prefix and turning the user name into something like a port number. This worked for me.