【问题标题】:Running "bundle install" changes "git://" to "https://" in Gemfile.lock运行“捆绑安装”将 Gemfile.lock 中的“git://”更改为“https://”
【发布时间】: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。

【问题讨论】:

    标签: ruby git bundler


    【解决方案1】:

    升级到 Bundler 1.7.2 似乎可以解决问题。

    【讨论】:

      猜你喜欢
      • 2023-04-05
      • 2012-11-12
      • 2019-03-01
      • 1970-01-01
      • 2011-11-22
      • 2012-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多