Github 无法推送或拉取代码的解决

SSL_ERROR_SYSCALL in connection to github.com: 443 ,以及OpenSSL SSL_read: Connection was reset, errno 10054 两种问题的解决
Github 无法推送或拉取代码的解决
category
tags
type
slug
summary
status
date
icon
password

现象一 SSL_ERROR_SYSCALL

Github 执行 git clonegit push 的时候出现如下异常
💡
fatal: unable to access " https ://github.com/tlyong1992/nextjs-notion-starter-kit. git/': LibreSSL SSL connect: SSL_ERROR_SYSCALL in connection to github.com: 443

环境

  • 操作系统 :MAC OS 10.15.7
  • Git版本: 2.24.2
  • 电脑科学上网

解决

方法一 配置git代理

参数中填写你的http代理信息

方法二 git禁用代理

执行以下脚本,修改全局代理配置(参考 Git Documentation
notion image

方法三 关掉代理软件

彻底关闭VPN,再Clone或者Push

方法四 更新ssl库

用homebrew指令更新,最后重新启动系统

方法五 关闭ipv6

执行networksetup -setv6off
 

现象二 Connection was reset, errno 10054

Git 执行 git clonegit push 的时候出现如下异常
💡
fatal: unable to access 'https://github.com/tangly1024/NotionNext.git/': OpenSSL SSL_read: Connection was reset, errno 10054

环境

  • 操作系统 :windows 10
  • Git版本: 2.32.0 windows.2
  • 电脑科学上网

解决

产生原因:一般是这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错。解决办法:解除ssl验证后,再次git即可
notion image
上一篇
在 WebStorm 与 VSCode中对NodeJs项目进行断点调试
下一篇
将视频转为文字—Python
Loading...
2023-10-18
最新发布
如何在股市生存-量化验证趋势交易
2025-3-30
如何在A股生存-超短龙头战法
2025-3-21
如何在A股生存-短线理论篇
2025-3-15
这个世界的真相是什么?为什么说“道”比方法论更重要?
2025-3-11
我的短线交易策略 - V 3.0
2025-3-5
《纳瓦尔宝典》讲了什么?为什么作者可以轻松白手起家?
2025-3-4