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
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
pony
  • 423
  • 1
  • 4
  • 7

1 Answers1

20

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

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • 8
    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. – liwp Oct 17 '11 at 11:25
  • 1
    Note that you can also use `--replace-all` for setting an existing config value without adding another entry – CharlesB Oct 17 '11 at 13:00