Git报错: Failed to connect to github.com port 443
配置http代理
git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890
查看代理命令
git config --global --get http.proxy
git config --global --get https.proxy
取消代理命令
git config --global --unset http.proxy
git config --global --unset https.proxy
说明:
命令中的主机号(127.0.0.1)是使用的代理的主机号(自己电脑有vpn那么本机可看做访问github的代理主机),即填入127.0.0.1即可,否则填入代理主机 ip(就是网上找的那个ip)
命令中的端口号(7890)为代理软件(代理软件不显示端口的话,就去Windows中的代理服务器设置中查看)或代理主机的监听IP,可以从代理服务器配置中获得,否则填入网上找的那个端口port
原文链接:Git报错: Failed to connect to github.com port 443 解决方案-优快云博客