Git 如何知道导出代理是否工作

Git 如何知道导出代理是否工作,git,proxy,export,firewall,Git,Proxy,Export,Firewall,为了下载office防火墙后面的一些开源代码,我正在导出代理 像这样 export http_proxy=http://username:passwdatXYZ.com:portnumber export https_proxy=http://username:passwdatXYZ.com:portnumber export HTTP_PROXY=://username:passwdatXYZ.com:portnumber export HTTPS_PROXY=://username:pass

为了下载office防火墙后面的一些开源代码,我正在导出代理 像这样

export http_proxy=http://username:passwdatXYZ.com:portnumber
export https_proxy=http://username:passwdatXYZ.com:portnumber
export HTTP_PROXY=://username:passwdatXYZ.com:portnumber
export HTTPS_PROXY=://username:passwdatXYZ.com:portnumber
我如何知道我的这个出口与上述密码和登录是否正确或不工作或不

我的密码有一个特殊字符-“
”,例如它是
->abcd!efgh
,因此我必须提供密码为
abcd%21efgh
(其中
21
是特殊字符“
”的unicode)

由于它不工作,您会对这些设置进行哪些更改?

我通常会执行以下操作:

set HTTP_PROXY=http://username:abcd%21efgh@proxy.xxx.company:portnumber
set HTTPS_PROXY=http://username:abcd%21efgh@proxy.xxx.company:portnumber
set NO_PROXY=.company
(始终使用
http://...
用于
HTTP\u代理
HTTPS\u代理

换句话说,我要确保代理不会被调用为以
.company
结尾的内部url


根据使用的代理,您的特殊字符可能受支持,也可能不受支持,因此,如果上述设置不起作用,请首先尝试使用普通密码(无任何特殊字符)更改您的密码。

@Raulp您可以用公司为其代理使用的任何扩展名替换您的密码。因此,如果我的代理url以“.company”结尾,我需要从代理调用中排除任何以“.company”结尾的url(因为ihat url将引用公司的内部LAN/WAN,而不是万维网)。