关于git代理设置问题记录

Overview

需要在Clash Verge将代理设置成全局。然后在设置中复制环境变量类型

打开终端设置代理即可。

增加超时时间

1
2
3
git config --global http.postBuffer 524288000
git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999

设置代理

1
2
git config --global http.proxy socks5://127.0.0.1:7897
git config --global https.proxy socks5://127.0.0.1:7897

取消代理

1
2
git config --global --unset http.proxy
git config --global --unset https.proxy