给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