autorenew

Git Common Commands

Set HTTP Proxy

git config --global http.proxy 127.0.0.1:7890
git config --global https.proxy 127.0.0.1:7890

View HTTP Proxy

git config --global --get http.proxy
git config --global --get https.proxy

Unset HTTP Proxy

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

GitHub

# Set proxy
git config --global http.https://github.com.proxy socks5://127.0.0.1:10808
# Unset proxy
git config --global --unset http.https://github.com.proxy