Git设置代理
摘要
git 的服务器在国外,导致正常拉 github 项目会很慢,还有可能会超时。所以需要一个科学上网软件,设置代理端口。
需求环境
-
代理软件
我使用的是 qv2ray 代理,查看一下你的代理端口。
平台设置
Mac 设置
- 打开终端,输入下面的指令
git config --global http.proxy 'socks5://127.0.0.1:1089'
git config --global https.proxy 'socks5://127.0.0.1:1089'