2013-03-12 108 views
4

检查出的代码,我想从GitHub上的新星代码,我得到了以下错误:得到443错误,而从GitHub

#git clone https://github.com/openstack/nova.git 
Initialized empty Git repository in /home/avikki/Desktop/nt/nova/.git/ 
error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/openstack/nova.git/info/refs 

fatal: HTTP request failed 

你可以建议该怎么办?

回答

2

它适用于我,没有错误。您可能遇到连接问题 - 请注意,错误说明显示git Failed to connect to github.com:443。看看这个答案:GitHub - HTTPS access它提供了一些可能的解决方案。

0

我有两次这个问题。我正在运行Linux。第一次,我在一个需要代理的网络上。 请参阅以下链接以了解如何修复代理设置:How do I pull from a Git repository through an HTTP proxy?

然后我将配置了代理的计算机连接到不需要代理的网络,并再次出现此错误。

要取消配置我的电脑代理,

git config --global --unset http.proxy 
unset http_proxy 
unset https_proxy 
unset ftp_proxy 
unset all_proxy 
unset FTP_PROXY 
unset ALL_PROXY 
unset HTTPS_PROXY 
unset HTTP_PROXY 

我不知道我需要取消设置的所有这些变量的,但我肯定需要的不仅仅是前两种。