ARTICLE DETAIL

建站实战干货

来自一线的建站与推广经验沉淀,每一条都经过真实交付验证。

给git配置指定代理

2026/8/12 1:16:48 拓冰建站 浏览量
给git配置指定代理
# 1. 先验证代理可用(TCP 通 + 走代理能出网)
curl -x http://192.168.3.90:7897 -sI -m 20 https://github.com -o /dev/null -w '%{http_code} %{time_total}s\n'
# → 200 0.25s ✅# 2. 给 git 配代理(git 配置优先级 > 环境变量,无需动 shell 环境)
git config --global http.proxy  http://192.168.3.90:7897
git config --global https.proxy http://192.168.3.90:7897