我们在pod install 或者 pod update的时,有时候会报Failed to connect to github.com port 443: Operation timed out
这种错误
刚开始遇到的时候,也是一头雾水,然后各种百度照抄,但是效果甚微!
如果尝试各种方法都没有的话,那有可能是下面的原因:
就是你用到的VPN软件导致的,找到VPN软件代理的端口,执行
git config --global --add remote.origin.proxy "127.0.0.1:7890
注意,端口7890
,换成你自己的!!!
注意,端口7890
,换成你自己的!!!
注意,端口7890
,换成你自己的!!!
重要的事情说三遍!!