pod setup或者pod install的时候超级慢很慢,二三十K的效果,让人很头疼恼火
解决办法
-
打开shadowsock(小灰机) -> 点击高级设置,查看默认代理端口,如图:
- 默认端口是1086,在终端执行下面语句
git config --global http.https://github.com.proxy socks5://127.0.0.1:1086
- 此时会发下下载速度嗖嗖的,下载完成后记得恢复git代理的配置,执行下面语句
git config --global --unset http.https://github.com.proxy