Git 设置全局代理
git config --global http.proxy http://127.0.0.1:1080
git config --global http.proxy http://127.0.0.1:1080
Git 取消全局代理
git config --global --unset http.proxy
git config --global --unset https.proxy
Git 特定域代理
git config --global https.https://github.com.proxy http://127.0.0.1:1080
相关配置文件
具体配置可以查看用户目录下的 .gitconfig
文件或项目下的 .git/config
文件。