Proxy 无法通过代理服务器克隆github目录

Proxy 无法通过代理服务器克隆github目录,proxy,github,Proxy,Github,我无法克隆特定的github分支!当我尝试这样做时,它显示了以下错误,因为我的大学里有一个squid代理服务器 Cloning into 'ws'... error: The requested URL returned error: 407 while accessing https://github.com/abcd/efg.git/info/refs fatal: HTTP request failed 请帮忙!! 提前感谢。尝试将代理服务器添加

我无法克隆特定的github分支!当我尝试这样做时,它显示了以下错误,因为我的大学里有一个squid代理服务器

       Cloning into 'ws'...
       error: The requested URL returned error: 407 while accessing https://github.com/abcd/efg.git/info/refs
       fatal: HTTP request failed
请帮忙!!
提前感谢。

尝试将代理服务器添加到您的
.gitconfig
(它位于您的
$HOME
文件夹中)

例如:

 [http]
        proxy = http://user:pass@127.0.0.1:3128
这必须放在gitconfig的
[core]
部分。 有关更多文档,请参阅

 [http]
        proxy = http://user:pass@127.0.0.1:3128