Mac終端的Git clone或者Pod install報下面的錯誤信息:
Failed to connect to github.com port 443 after 75009 ms: Operation timed out
解決方案:
修改hosts文件,執(zhí)行命令行指令:
sudo vim /etc/hosts
輸入密碼后進入到編輯框中,輸入i,進入編輯模式。用#注釋掉下面的地址
#192.30.253.112 github.com
#151.101.113.194 github.global.ssl.fastly.net
esc :wq保存。
再次執(zhí)行clone或者pod install成功。