https/http 协议的执行:
# 设置 http 代理
git config --global https.proxy http://127.0.0.1:8080
# 或 socks5 代理
git config --global http.proxy socks5h://127.0.0.1:1080
# 取消代理
git config --global --unset http.proxy
https/http 协议的执行:
# 设置 http 代理
git config --global https.proxy http://127.0.0.1:8080
# 或 socks5 代理
git config --global http.proxy socks5h://127.0.0.1:1080
# 取消代理
git config --global --unset http.proxy