git提交报错SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

git push报错

git push origin master

Administrator@FREESKYC-92DB80 /e/git/ouyida3/ouyida3.github.io (master)
$ git push origin master
fatal: unable to access 'https://github.com/ouyida3/ouyida3.github.io.git/': err
or:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

版本

winxp sp3
git 1.9.5

720375-20180811100722071-1611075387.png

https://githubengineering.com/crypto-removal-notice/

下载git最新版本2.18.0

https://git-scm.com/downloads

下载:Git-2.18.0-32-bit.exe

720375-20180811101001158-125344485.png

git查看ssl版本号

两个命令都可以。但是注意点是,如果没有这个配置,会什么也不显示。因为我这里连tls1.0也没有显示。

git config http.sslVersion
git config --global --list

720375-20180811101716004-1903399881.png

720375-20180811101741563-1094005682.png

$ git config --global http.sslVersion tlsv1.2

720375-20180811101910978-552609556.png

720375-20180811102036232-185208798.png

720375-20180811102048778-2080462475.png

win xp系统彻底可以抛弃了!
jdk不行、chrome不行、git不行。我要花钱买新电脑了!

别人博客说2.6.2就可以解决,别的博客又说2.16xp还可以安装。好吧,那我就下载个2.7来安装把。

https://github.com/git-for-windows/git/releases/tag/v2.7.0.windows.1

安装后界面焕然一新:
720375-20180811105017042-602857276.png

乱码也没了。
720375-20180811105141350-175569143.png

比1.9还多了个cmd的:
720375-20180811105057196-1104213849.png

push成功!新版本变成弹出框。。。
720375-20180811105542764-947546005.png

由于更新了,要先git pull。
问题完美解决。

参考:
https://blog.csdn.net/virusnono/article/details/79361870 2月24日
https://blog.csdn.net/huihut/article/details/79404421 2月28日

转载于:https://www.cnblogs.com/ouyida3/p/9458713.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值