Git Proxy Configuration Guide
Why a proxy matters Slow or unstable networks—think corporate firewalls, cross-border latency, or flaky hotel Wi-Fi—can make cloning or fetching repositories painful. Pointing Git to an HTTP, HTTPS, or SOCKS proxy lets you reuse existing access infrastructure (jump hosts, Clash, Shadowsocks, V2Ray, enterprise proxies) and speed up operations. Enable HTTP/HTTPS proxy quickly Write the proxy endpoint directly into Git configuration: # Global (~/.gitconfig) git config --global http.proxy http://127.0.0.1:7890 git config --global https.proxy http://127.0.0.1:7890 Limit the scope to a single repository by omitting --global and running inside the repo: ...