Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Proxy 无法通过代理服务器克隆github目录_Proxy_Github - Fatal编程技术网

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