全局删除 git 代理

3 min read

要全局删除 git 代理,请在终端中运行以下命令。

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

如果要在本地配置中删除 git 代理,请使用以下命令:

git config  --unset http.proxy
git config  --unset https.proxy
git config  --unset core.gitproxy

您可以通过运行以下命令来验证代理配置是否已成功从您的系统中删除:

git config --global --list