git clone 慢 设置代理
作者:
别瞄我 | 来源:发表于
2020-04-17 11:29 被阅读0次
常用操作
git clone https://github.com/TIGERB/easy-php.git
设置代理
- 临时
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"
对比结果

代理前

代理后
其他操作
-
小飞机的代理默认端口
windows:http://127.0.0.1:1080
macOS:http://127.0.0.1:1087
- 查看 git 全局配置
git config --global -l
- 取消代理设置
git config --global --unset http.proxy
本文标题:git clone 慢 设置代理
本文链接:https://www.haomeiwen.com/subject/qjkevhtx.html
网友评论