Exclude hosts or domains with git proxy

夙愿已清 提交于 2019-12-13 05:10:00

问题


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


回答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.



来源:https://stackoverflow.com/questions/27229883/exclude-hosts-or-domains-with-git-proxy

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!