laravel 访问 git 时代理连接中止

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37566447/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 13:55:10  来源:igfitidea点击:

Proxy connect aborted while accessing git

gitlaravelproxygit-clonehttp-proxy

提问by s_user

I'm trying to clone the following repo using command : git clone https://github.com/laravel/laravel.git

我正在尝试使用命令克隆以下存储库:git clone https://github.com/laravel/laravel.git

And I'm getting following error:

我收到以下错误:

Cloning into 'laravel'...
error: Proxy CONNECT aborted while accessing https://github.com/laravel/laravel.git/info/refs?service=git-upload-pack
fatal: HTTP request failed

What is going wrong ?

出了什么问题?

回答by Jan Tancibok

I'm behind the proxy, when I setup git to use proxy, like it is stated in this answer: Getting git to work with a proxy server

我在代理后面,当我设置 git 以使用代理时,就像这个答案中所述:让 git 与代理服务器一起工作

I could correctly cloned that laravel repo

我可以正确克隆那个laravel repo