Git config

给git(包含cocoapods)加上代理

Posted by CC on November 6, 2020

Cocoapods 速度慢解决方法

cocoapods速度慢,主要问题还是墙的问题,加代理后可基本解决问题

查看当前的git配置

1
git config --global --list

假如代理地址为 http://127.0.0.1:7890
给git加上代理(包含http和https)

1
git config --global http.https://github.com.proxy http://127.0.0.1:7890

移除git代理

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