git push报错:OpenSSL SSL_read: Connection was reset

问题描述

好久没有跟新github今天提交了一次发现报错了

fatal: unable to access 'https://github.com/jlundo/demo.git/': OpenSSL SSL_read: Connection was reset, errno 10054

问题分析

从报错中可以看出ssl 链接重置了

解决方法

# 1.查看git配置
  git config --global -l
# 2.检查环境变量
  env|grep -i proxy  

执行完上面两个命令,再次执行git push就成功了。

原文地址:https://www.cnblogs.com/codebook/p/14772816.html