9

Why do I see the following warning?

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

1 Answer 1

21

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

git config -l

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

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

liwp mentions in the comment a:

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

to get of all http.proxy entries

Sign up to request clarification or add additional context in comments.

2 Comments

I had to use --unset-all instead of --unset to get rid of both entries. Otherwise git would just complain again that there are multiple entries.
Note that you can also use --replace-all for setting an existing config value without adding another entry

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.