设置 git 与终端代理 发表于 2023-05-23 更新于 2025-08-09 分类于 技术笔记 设置 git 与终端代理 Powershell 使用 $env:HTTP_PROXY="http://127.0.0.1:7890"; $env:HTTPS_PROXY="http://127.0.0.1:7890" 对于 git git config --global http.proxy 'http://127.0.0.1:7890'git config --global https.proxy 'https://127.0.0.1:7890' Bash export http_proxy=http://127.0.0.1:7890export https_proxy=http://127.0.0.1:7890