【已解决】LibreSSL SSL_connect: Operation timed out in connection to github.com:443

本文转载自其他博客

解决 IDEA 等工具在上传代码至 GitHub 时报 LibreSSL SSL_connect: Operation timed out in connection to github.com:443 错误。

步骤(四步):

1、首先查看自己的代理 socks 端口,我自己用的是 ClashX 。 

2、根据 socks 端口配置 git 代理,例如这里我的 socks 端口为 7890。

git config --global http.proxy socks5://127.0.0.1:端口
git config --global http.https://github.com.proxy socks5://127.0.0.1:端口

3、建议再配置以下两个,不然后续可能会报错

git config --global http.version HTTP/1.1
git config --global http.postBuffer 524288000

4、查看配置是否成功

git config --global --list

番外:恢复原来的配置。

git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy

posted @   ThinkStu  阅读(105)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
点击右上角即可分享
微信分享提示