git
2026/3/4小于 1 分钟约 82 字
设置代理
# 设置代理
# HTTP/HTTPS 代理
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy http://127.0.0.1:7890
# SOCKS5 代理(推荐,git 支持)
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080
# 查看配置
git config --global --get http.proxy
# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy