清空配置

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

添加配置

git config --global http.proxy http://localhost:7897
git config --global https.proxy https://localhost:7897

一键清空

git config --global --unset proxy

查看配置

git config --global --list | grep proxy


当我们本地挂上代理工具,如Clash Verge时,倘若我们启用了代理,会有一个本地代理端口号,如下图所示。


当然也可以直接从系统代理里找到,进而进行配置。