从git://github.com/pengwynn/linkedin.git安装linkedin时如何解决git错误?

时间:2012-04-16 07:11:36

标签: ruby-on-rails git linkedin

我在ROR中使用捆绑安装时遇到此错误。

获取git://github.com/pengwynn/linkedin.git     致命:无法查找github.com(端口9418)(没有这样的主机是已知的。)     Git错误:目录C中的命令git clone "git://github.com/pengwynn/linkedin.git" "C:/RailsInstaller/Ruby1.8.7/lib/ruby/gems/1.8/ca che/bundler/git/linkedin-3e3919d62b37a1f8879ade6b51b3eeb032fc8973" --bare --no-hardlinks:/ linkedin / linke     dinfrongit失败了。

我正在使用Windows。

2 个答案:

答案 0 :(得分:5)

您是否在阻止端口9418上的连接的防火墙后面?也许你可以尝试使用http协议吗?

git clone https://github.com/pengwynn/linkedin.git

答案 1 :(得分:2)

Set proxy using git config command in the command prompt with
the following two commands: 
    git config --global http.proxy http://username:password@host:port 
    git config --global https.proxy http://username:password@host:port

In command like:
    git clone git://github.com/saasbook/hw2_rottenpotatoes.git
Replace replace git:// with https://.
    git clone https://github.com/saasbook/hw2_rottenpotatoes.git