命令行配置

全局代理配置

git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080

指定特定域名代理

git config --global https.https://github.com.proxy socks5://127.0.0.1:1080

重置代理

git config --global --unset https.https://github.com.proxy

直接修改配置文件

[http "https://github.com"]
	proxy = socks5://127.0.0.1:1080
[https "https://github.com"]
	proxy = socks5://127.0.0.1:1080