常用操作
git clone https://github.com/TIGERB/easy-php.git
設(shè)置代理
- 臨時
git clone -c http.proxy="http://127.0.0.1:1080" https://github.com/TIGERB/easy-php.git
- 永久
git config --global http.proxy "http://127.0.0.1:1080"
對比結(jié)果
代理前
代理后
其他操作
-
小飛機的代理默認端口
windows:http://127.0.0.1:1080
macOS:http://127.0.0.1:1087
- 查看 git 全局配置
git config --global -l
- 取消代理設(shè)置
git config --global --unset http.proxy