OpenSSL SSL_connect: Connection was reset in connection to github.com:443解决方案
将https 更改为git如git pull https://github.com/user/project.git#改为下面git pull git://github.com/xxx/xxx但是只能复制在push项目时就不行设置代理模式(推荐)出现问题的原因主要是 你使用了 科学上网工具增加代理即可git config --global http.proxy 127.0.0.1:10809git
·
将https 更改为git
如
git pull https://github.com/user/project.git
#改为下面
git pull git://github.com/xxx/xxx
但是只能复制项目,在push项目时就不行
设置代理模式(推荐)
出现问题的原因主要是 你使用了 科学上网工具
增加代理即可
git config --global http.proxy 127.0.0.1:10809
git config --global https.proxy 127.0.0.1:10809
//去掉 --global为局部代理,只在当前文件生效
10809为代理端口号
如果你之前git中已经设置过上述配置,则使用如下命令取消再进行配置即可:
git config --global --unset http.proxy
git config --global --unset https.proxy
下面是几个常用的git配置查看命令:
git config --global http.proxy #查看git的http代理配置
git config --global https.proxy #查看git的https代理配置
git config --global -l #查看git的所有配置
更多推荐
已为社区贡献1条内容
所有评论(0)