git push fatal: unable to access : OpenSSL SSL

编程入门 行业动态 更新时间:2024-10-19 00:24:20

git push <a href=https://www.elefans.com/category/jswz/34/1770274.html style=fatal: unable to access : OpenSSL SSL"/>

git push fatal: unable to access : OpenSSL SSL

错误原因

前两天push的时候突然遇到这个问题,细究原因可能是在谷歌上通过VPN登录了一次github(以前都是走的国内线路登录的)
出现此问题后无论用不用VPN,git账号怎样登录,在master分支上都无法push了。

错误表现

这个错误会报两种错

xuefeng@DESKTOP MINGW64 /d/XXX (master)
$ git push
fatal: unable to access '.git/': OpenSSL SSL_read: Connection was resetxuefeng@DESKTOP MINGW64 /d/XXX (master)
$ git push
fatal: unable to access '.git/': Failed to connect to github port 443: Timed out

解决方法

更新DNS缓存
Mac用户:

sudo killall -HUP mDNSResponder
sudo dscacheutil -flushcache

Windows用户:cmd命令窗口执行:

ipconfig /flushdns

参考:

使用git克隆github上的项目失败:unable to access github: OpenSSL SSL_read: Connection was reset, errno 10054.

更多推荐

git push fatal: unable to access : OpenSSL SSL

本文发布于:2024-03-05 10:14:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1712012.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:fatal   push   git   unable   SSL

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!