Git 提交推送时> git pull --tags origin main fatal: unable to access Failed to connect to github.com port 443 after 21108 ms: Could not connect to server
> git pull --tags origin main fatal: unable to access 'https://github.com/xxx/xxx.git/': Failed to connect to github.com port 443 after 21108 ms: Could not connect to server
错误原因:
可能是由于你使用了 VPN 改变了系统端口。
查看系统网络设置-代理-复制这个端口号
然后到在git中
git config --global http.proxy 127.0.0.1:<复制的端口号>
git config --global https.proxy 127.0.0.1:<复制的端口号>
再次推送发现可以了!