当我运行 bundle install
时,Gemfile.lock
中以 remote: git://github.com
开头的 URL 更改为远程:https://github.com
。因为我正在与其他人一起开发一个项目,所以我无法提交这些更改。如何强制 Bundler 使用 git
协议(protocol)?
其他人似乎有相反的问题,想要使用 https
而不是 git
。我尝试使用以下命令,基于 this answer ,但无济于事:
git config --global url."git://github.com".insteadOf https://github.com
我正在使用 Bundler 1.7.0 和 RVM。
最佳答案
升级到 Bundler 1.7.2 似乎可以解决问题。
关于ruby - 运行 "bundle install"将 Gemfile.lock 中的 "git://"更改为 "https://",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25794846/