这里介绍使用代理的方式加快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
本文介绍通过设置代理服务器来提升GitHub访问速度的方法。具体步骤包括:确定代理端口,配置全局HTTP代理,以及如何取消代理设置。此方法同样适用于提高pod install和pod update的速度。
1278

被折叠的 条评论
为什么被折叠?



