Git proxy bypass

前端 未结 7 2039
借酒劲吻你
借酒劲吻你 2020-12-07 14:07

Git works in a proxied environment by setting the http.proxy configuration parameter.

For certain addresses I need to bypass the proxy. Is there a no-proxy/bypass-p

相关标签:
7条回答
  • 2020-12-07 14:44

    To bypass proxy for certain, usually a local address, all you need to do is:

    export no_proxy=URLToIgnore
    

    Where URLToIgnore is the URL that you want Git to ignore. You can also ignore URLs ending with a certain word.

    export no_proxy=.mylocal
    

    Where all urls ending with .mylocal will get ignored. To ignore multiple URLs:

    export no_proxy=.mylocal URLToIgnore
    

    To make it permanent, add it to your ~/username/.bash_profile file. If you cannot find .bash_profile file in your user root directory, then manually create it.

    For more details: How to temporarily disable git http proxy

    0 讨论(0)
提交回复
热议问题