【持续更新】NotionNext 3.13.2已经上线,更新历史: https://tangly1024.com/article/notion-next-changelogs
Tangly
Tangly
编程爱好者
/互联网从业者
/知识分享博主
人在淋雨时,比撑伞的人跑得快

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

Tangly - 2021-06-07 - 知识分享 / 开发
2021-6-7|最后更新: 2023-2-19|
category
知识分享
tags
开发
type
Post
status
Published
slug
git-ssl-error
date
Jun 7, 2021
summary
SSL_ERROR_SYSCALL in connection to github.com: 443 ,以及OpenSSL SSL_read: Connection was reset, errno 10054 两种问题的解决
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 config --global http.proxy http[s]://username:[email protected]:portnumber # 举例 git config --global http.proxy http://127.0.0.1:1082 # git config --global http.proxy http://127.0.0.1:8001

方法二 git禁用代理

执行以下脚本,修改全局代理配置(参考 Git Documentation
git config --global --unset http.proxy
notion image

方法三 关掉代理软件

彻底关闭VPN,再Clone或者Push

方法四 更新ssl库

用homebrew指令更新,最后重新启动系统
brew update libressl brew update openssl brew update curl

方法五 关闭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即可
git config --global http.sslVerify "false"
notion image
在 WebStorm 与 VSCode中对NodeJs项目进行断点调试上班族如何规划健康食谱
  • Twikoo
  • Waline
  • Giscus
  • Cusdis