Git 代理绕过 [英] Git proxy bypass

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

问题描述

Git 通过设置 http.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?

推荐答案

可以在每个远程的基础上覆盖代理 - 请参阅 http://git-scm.com/docs/git-config(查找http.proxy"和remote..proxy"设置).假设你有一个叫做origin"的遥控器,那么你可以用来绕过这个遥控器的代理的命令是:

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天全站免登陆