从git源协议切换到加密的https
根据此和此,我执行了以下两个命令:从git源协议切换到加密的https,git,macos,rubygems,bundler,Git,Macos,Rubygems,Bundler,根据此和此,我执行了以下两个命令: $ bundle config --global github.https true $ git config --global url."https://github.com".insteadOf git://github.com 但是当我使用bundle install时,我仍然收到以下关于gits unencrypted protocol的警告消息: The git source uses the `git` protocol, which trans
$ bundle config --global github.https true
$ git config --global url."https://github.com".insteadOf git://github.com
但是当我使用bundle install
时,我仍然收到以下关于gits unencrypted protocol的警告消息:
The git source uses the `git` protocol, which transmits data without encryption.
Disable this warning with `bundle config git.allow_insecure true`,
or switch to the `https` protocol to keep your data secure.
对于两者:git://github.com/jnicklas/capybara.git
git://github.com/thoughtbot/shoulda-matchers.git
为了它的价值:捆绑机版本1.13.6
git版本2.10.1(苹果git-78)
(注意:git是通过Xcode安装的)
另外,在我输入这些命令之前,我收到了四条与其他gem相关的警告。在输入命令后,我仍然会得到这两个的警告。我查看了README.md文件中的“”和“”,没有发现任何迹象表明此问题的解决方案或原因。
最后,
bundle安装
报告:
Using shoulda-matchers 3.0.1 from git://github.com/thoughtbot/shoulda-matchers.git (at master@db67d27)
Using capybara 2.6.0.dev from git://github.com/jnicklas/capybara.git (at master@e6886de)
原来是github源指定的~/project/Gemfile:
group :test do
gem 'shoulda-matchers', :git => 'git://github.com/thoughtbot/shoulda-matchers.git'
gem 'capybara', :git => 'git://github.com/jnicklas/capybara.git'
end
删除,:git=>“PATH”
可以让我安全地安装最新gems的https协议。额外奖励:当我宝石列表时,宝石也会出现。。。FWIW:这不是我白手起家写的项目,我只是在帮助别人完成他们的项目,但现在我知道了