pod install太慢 可以使用代理的方式

这里介绍使用代理的方式加快github的访问速度
1.找到代理端口,比如我的是1080

2.执行命令行

git config --global http.proxy socks5://127.0.0.1:1080
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080

3.执行pod install 和 pod update速度都会变得很快

4.取消代理的方式

git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy

或者进入到.gitconfig中去掉最下面两行

[http]
	proxy = socks5://127.0.0.1:1080
[http "https://github.com"]
	proxy = socks5://127.0.0.1:1080
原文地址:https://www.cnblogs.com/qqcc1388/p/12879206.html