Git 设定仅github走特定代理

# 仅github域名走代理
git config --global http.https://github.com.proxy http://127.0.0.1:7897
git config --global https.https://github.com.proxy http://127.0.0.1:7897

 

清理默认代理:

git config --global --unset http.proxy
git config --global --unset https.proxy

  

posted @ 2026-10-22 16:55  人间春风意  阅读(13)  评论(0)    收藏  举报