0

最近开始出现此问题:尝试运行捆绑更新或安装时,我得到

fatal: unable to access 'https://github.com/nomaddc/country_select.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Retrying `git clone "https://github.com/nomaddc/country_select.git" "C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/cache/bundler/git/country_select-db5df4c320ea31e458a287fae5e692ca9b00cf24" --bare --no-hardlinks --quiet` due to error (2/4): Bundler::Source::Git::GitCommandError Git error: command `git clone "https://github.com/nomaddc/country_select.git" "C:/RailsInstaller/Ruby2.3.3/lib/ruby/gems/2.3.0/cache/bundler/git/country_select-db5df4c320ea31e458a287fae5e692ca9b00cf24" --bare --no-hardlinks --quiet` in directory c:/Sites/BRICS has failed.fatal: unable to access 'https://github.com/nomaddc/country_select.git/': error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

那个 github 是我的 country_select 的分支。知道什么是磨损的以及如何修复它吗?我在 Windows 10 下运行 RailsInstaller 版本。

注释掉 gem 可以很好地运行命令,但我不能从项目中删除它。

4

1 回答 1

1

尝试更改https://git://

否则可能是因为这种变化:

2018 年 2 月 8 日,我们将开始禁用以下功能:

TLSv1/TLSv1.1:这适用于所有 HTTPS 连接,包括到https://github.comhttps://api.github.com的 Web、API 和 git 连接。diffie-hellman-group1-sha1:这适用于到 github.com 的所有 SSH 连接 diffie-hellman-group14-sha1:这适用于到 github.com 的所有 SSH 连接 我们将分两个阶段禁用算法:

2018 年 2 月 8 日 19:00 UTC(太平洋标准时间上午 11:00):禁用弃用算法一小时 2018 年 2 月 22 日 19:00 UTC(太平洋标准时间上午 11:00):永久禁用弃用算法

所以你可以更新你的 git 客户端并尝试再次推送它(它应该可以工作)。

祝你好运!

于 2018-04-03T10:40:23.517 回答