随笔 - 92  文章 - 0  评论 - 3  阅读 - 28178

Github报错

1.fatal: unable to access 'https://github.com/wxler/test.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443

原文链接:https://blog.csdn.net/qq_37555071/article/details/114260533

在使用git命令进行push和pull时,出现如下报错:
fatal: unable to access 'https://github.com/wxler/test.git/': OpenSSL SSL_connect: Connection was reset in connection to github.com:443
方案一
如果开启了VPN,很可能是因为代理的问题,这时候设置一下http.proxy就可以了。
一定要查看自己的VPN端口号,假如你的端口号是7890,在git bash命令行中输入以下命令即可:

1 git config --global http.proxy 127.0.0.1:7890
2 git config --global https.proxy 127.0.0.1:7890

如果你之前git中已经设置过上述配置,则使用如下命令取消再进行配置即可:

1 git config --global --unset http.proxy
2 git config --global --unset https.proxy

下面是几个常用的git配置查看命令:

1 git config --global http.proxy #查看git的http代理配置
2 git config --global https.proxy #查看git的https代理配置
3 git config --global -l #查看git的所有配置
posted on   somethingα  阅读(64)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示