# 设置HTTP代理
git config --global http.proxy http://<proxy_username>:<proxy_password>@<proxy_host>:<proxy_port>
# 设置HTTPS代理
git config --global https.proxy https://<proxy_username>:<proxy_password>@<proxy_host>:<proxy_port>
# 设置HTTP代理(无认证)
git config --global http.proxy http://<proxy_host>:<proxy_port>
# 设置HTTPS代理(无认证)
git config --global https.proxy https://<proxy_host>:<proxy_port>
# 取消HTTP代理设置
git config --global --unset http.proxy
# 取消HTTPS代理设置
git config --global --unset https.proxy