Git proxy bypass

前端 未结 7 2052
借酒劲吻你
借酒劲吻你 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:22

    The proxy can be overridden on a per-remote basis - see http://git-scm.com/docs/git-config (look for the "http.proxy" and "remote..proxy" settings). Assuming you have the remote called "origin" then the command you could use to bypass proxy for this remote is:

    git config --add remote.origin.proxy ""
    

提交回复
热议问题