我想通过代理服务器做"git clone".问题是我的代理服务器使用摘要式身份验证.所以我既没有在git文档中找到,也没有帮助那些已经制作的人.
我通过谷歌搜索挖掘,我找不到任何有用的结果.
Thxs.
Del*_*itt 26
只是为了节省一些谷歌搜索Bennet的答案:
>git config --global --unset https.proxy>git config --global --unset http.proxy设置新设置:
>git config --global https.proxy https://USER:PWD@proxy.whatever:80
>git config --global http.proxy http://USER:PWD@proxy.whatever:80
验证新设置:
>git config --get https.proxy
>git config --get http.proxy
注意:验证时,您应该看到相同的值.
Ben*_*wee 17
我能够通过身份验证的代理做一个git克隆环境变量设置http_proxy到http://username:password@proxyhost:80
然后一个普通的ole git clone工作.
(代理是一些企业Windows的东西,所以我的用户名实际上看起来像domain\username.花了一段时间才意识到我需要域名.)