window下pull出错,报错内容
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
解决方法:
- 升级git版本到2.1.X
- 由于升级了git,可能导致存在2个版本的git,如果你使用了
tortoise git
,需要更改settings->general->git for window->git.exe path
。 - 更新系统path的
git bin
路径配置 - 打开
cmd
,输入git --version
,查看正在使用的git是否新版本 - 输入
git config --global --add http.sslVersion tlsv1.2
添加tlsv1
支持 - 再试下pull,可成功pull
参考:
https://github.com/glennhickey/progressiveCactus/issues/93
https://git-scm.com/docs/git-config
git下载地址:
https://git-scm.com/download/win
网友评论