Git git-repo-proxy git repo proxy 参考 Method 1. git http + proxy http 1 2 git config --global http.proxy "http://127.0.0.1:1080" git config --global https.proxy "http://127.0.0.1:1080" Method 2. git http + proxy shocks 1 2 git config --global http.proxy "socks5://127.0.0.1:1080" git config --global https.proxy "socks5://127.0.0.1:1080" to unset 1 2 git config --global --unset http.proxy git config --global --unset https.proxy Method 3. git ssh + proxy http 1 2 3 4 5 vim ~/.ssh/config Host github.com HostName github.com User git ProxyCommand socat - PROXY:127.0.0.1:%h:%p,proxyport=1087 Method 4. git ssh + proxy socks 1 2 3 4 5 6 7 8 9 vim ~/.ssh/config Host github.com HostName github.com User git # Linux ProxyCommand nc --proxy-type socks5 --proxy 127.0.0.1:1080 %h %p # Windows # fist, scoop install main/nmap ProxyCommand ncat --proxy-type socks5 --proxy 127.0.0.1:1080 %h %p