徐智军
徐智军
发布于 2024-08-02 / 16 阅读
0
0

Git设置代理

# 设置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


评论