git clone github 仓库时常出现超时,设置下代理可以很好的解决问题。
¶设置代理
  https 也可以改为 http;7890 是 clash 的代理服务端口。--global 表示全局设置。
1  | git config --global https.proxy https://127.0.0.1:7890  | 
¶取消代理
1  | git config --global --unset https.proxy  | 
¶查看代理
1  | git config --global --get https.proxy  |