Failed to connect to github.com port 443: Connection timed out

朱小落

关注

阅读 10

2024-01-20

使用git clone出现的这个问题,这个问题一般是使用翻墙代理软件引起的

一:取消代理(一般取消后 也不能正常使用git clone,因为没翻墙。。。,网速特好时偶尔也可以)

取消全局代理:
git config --global --unset http.proxy
 
git config --global --unset https.proxy

二:设置正确的代理端口号

随后设置正确的代理端口,如:

# 一般是7890, 查看自己的代理端口
git config --global http.proxy socks5 127.0.0.1:7890
git config --global https.proxy socks5 127.0.0.1:7890

然后就可以正常使用了

精彩评论(0)

0 0 举报