Git代理旁路 [英] Git proxy bypass

查看:81
本文介绍了Git代理旁路的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Git通过设置http.proxy配置参数在代理环境中工作。

对于某些地址,我需要绕过代理。是否有一个no-proxy / bypass-proxy配置参数?

解决方案

代理可以在每个远程的基础上被覆盖 - 请参阅 http://git-scm.com/docs/git-config
(查找http.proxy和remote.< name> .proxy设置)。假设你有一个名为origin的远程,那么你可以使用绕过这个远程代理的命令:

  git config  - -add remote.origin.proxy


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-proxy configuration parameter?

解决方案

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.<name>.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 ""

这篇关于Git代理旁路的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆