对于一些需要FQ才能克隆下来的项目:
如果不使用代理,可能会报如下错误:
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:02:06 --:--:-- 0curl: (7) Failed to connect to
443: Connection timed out

这时候我们需要使用代理才克隆项目:
进入terminal:
设置代理:
git config --global http.proxy http://127.0.0.1:1087
git config --global https.proxy http://127.0.0.1:1087

取消代理:
git config --global --unset https.proxy
git config --global --unset http.proxy

解释:
http://127.0.0.1:1087 是指本机设置的http代理监听地址。

posted on 2019-07-01 17:18  slightlove  阅读(241)  评论(0编辑  收藏  举报