设置 git 与终端代理

设置 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:7890
export https_proxy=http://127.0.0.1:7890