git提交问题:Failed to connect to github.com port 443: Operation timed out

查询可用IP

点击查询

修改HOSTS文件

sudo vi /etc/hosts,替换成可用ip即可

刷新DNS

windows: ipconfig /flushdns
mac: sudo killall -HUP mDNSResponder

原文地址:https://www.cnblogs.com/wlor/p/15398813.html