Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 捆绑安装导致git克隆错误。不知道这个回答是什么意思_Ruby On Rails_Git_Clone - Fatal编程技术网

Ruby on rails 捆绑安装导致git克隆错误。不知道这个回答是什么意思

Ruby on rails 捆绑安装导致git克隆错误。不知道这个回答是什么意思,ruby-on-rails,git,clone,Ruby On Rails,Git,Clone,在bundle安装时出现奇怪错误 bundle install Fetching gem metadata from http://rubygems.org/..... Fetching gem metadata from http://rubygems.org/.. Fetching git://github.com/maccman/gdata.git fatal: The remote end hung up unexpectedly Git error: command `git clon

在bundle安装时出现奇怪错误

bundle install
Fetching gem metadata from http://rubygems.org/.....
Fetching gem metadata from http://rubygems.org/..
Fetching git://github.com/maccman/gdata.git
fatal: The remote end hung up unexpectedly
Git error: command `git clone 'git://github.com/maccman/gdata.git' "/Users/elephanttrip/.rvm/gems/ruby-1.9.2-p318@shasta/cache/bundler/git/gdata-811f852468ac76e0019108d8c5320da12b6683d4" --bare --no-hardlinks` in directory /Users/elephanttrip/Sites/shasta has failed.
在我用brew安装mysql2 gem和mysql之前,这一切都没有发生

你知道这个错误是什么意思吗

更新


此外,它尝试克隆的文件夹中没有一个是存在的。这可能与我的捆绑路径和杂耍有关。rvm

问题不在你这边。尝试:

git clone 'git://github.com/maccman/gdata.git' "foobar" --bare --no-hardlinks
在我的机器上失败,并出现相同的错误

有趣的是,一个非裸体的克隆似乎可以像预期的那样工作


解析:从https接口克隆:
https://github.com/maccman/gdata.git

将SSH密钥添加到github

或者正如@brice所提到的,您需要将您的团队加入回购协议

  • 在终端中写入
    bundle config github.https true
  • 在终端中写入
    捆绑安装

  • 啊,太棒了。谢谢你指出我的欧洲同志。我就把那篇文章评论一下;德威尔,我可能没那么快,你可能需要GDataAPI:)我把它切换到https连接,它工作了。至少可以说很有趣。这可能是github团队需要做的事情。