【已解决】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 @ 2022-11-17 20:27  ThinkStu  阅读(112)  评论(0)    收藏  举报