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的所有配置