Window Git $ git config --global http.proxy 警告:http.proxy 有多个值

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6529433/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 05:38:09  来源:igfitidea点击:

Window Git $ git config --global http.proxy warning: http.proxy has multiple values

git

提问by pony

Why do I see the following warning?

为什么我会看到以下警告?

$ git config --global http.proxy http://172.19.18.22:8080
warning: http.proxy has multiple values

回答by VonC

Simple display all three configuration level (system, globaland local) in order to check if you see several http.proxyconfiguration:

简单显示所有三个配置级别(系统、全局和本地),以检查您是否看到多个http.proxy配置:

git config -l

You can then proceed to remove the extra one with a:

然后,您可以继续使用以下命令删除多余的:

git config --system (or --global or --local) --unset http.proxy

liwpmentions in the comment a:

liwp在评论 a 中提到:

git config --system (or --global or --local) --unset-all http.proxy

to get of all http.proxyentries

获取所有http.proxy条目