【发布时间】:2014-11-05 20:08:42
【问题描述】:
当我运行 bundle install 时,Gemfile.lock 中以 remote: git://github.com 开头的 URL 更改为 remote: https://github.com。因为我正在和其他人一起做一个项目,所以我不能提交这些更改。如何强制 Bundler 使用git 协议?
其他人似乎有相反的问题,想使用https 而不是git。我尝试使用以下命令,基于this answer,但无济于事:
git config --global url."git://github.com".insteadOf https://github.com
我正在使用 Bundler 1.7.0 和 RVM。
【问题讨论】: