1

I use git behind a firewall and I need to configure

$ git config --global http.proxy

to handle connection.

But what happens if I only wanna avoid proxy for local domains? I need the proxy for every host excepts for servers in my LAN.

There is a way to do?

Thanks

Pablo
  • 635
  • 1
  • 7
  • 18
  • 1
    Possible duplicate of [Only use a proxy for certain git urls/domains?](http://stackoverflow.com/questions/16067534/only-use-a-proxy-for-certain-git-urls-domains) – Daniel Rose Jul 12 '16 at 09:15

1 Answers1

1

You can define an environment variable no_proxy in order to avoid the proxy for a specific domain:

no_proxy=.mycompany

The other approach, since git 1.8.5+, is to set a proxy per url.

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755