SourceTree错误:1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本

yu *_*ian 67 git github atlassian-sourcetree

我正在使用SourceTree并尝试从一般的github存储库克隆,但我收到此错误:

致命:无法访问" https://github.com/mfitzp/15-minute-apps.git/ ":错误:1407742E:SSL例程:SSL23_GET_SERVER_HELLO:tlsv1警报协议版本已完成但有错误,请参阅上文.

怎么解决?

yu *_*ian 78

检查Tools > Options > GitSourceTree,如果你正在使用Use Embedded Git,你可以看到git版本1.9.5是旧的,最新版本的git是2.16.2.

所以点击Use System Git,如果你安装了较新版本的git,Use system Git它会显示更新的版本,然后尝试再次克隆它应该工作正常.

另见这里的另一个答案.

在此输入图像描述

  • 将git升级到最新版本帮助.谢谢 (6认同)

小智 27

我有同样的问题,我的修复是:

1.update git到最新版本

2.在命令行中使用命令检查你的tls版本:git config http.sslVersion

3.如果版本是tlsv1.0,则必须使用以下命令将其更新为tlsv1.2:

  • git config --global --unset http.sslVersion
  • git config --global --add http.sslVersion tlsv1.2

而且错误将不再存在


小智 20

您必须将git升级到最新版本 https://git-scm.com/downloads