修改~/.gitconfig文件增加如下代码:12[http] proxy = socks5://127.0.0.1:1080
12
[http] proxy = socks5://127.0.0.1:1080