错误:连接到github.com:8080失败;连接被拒绝。

4

我知道这个问题并不新鲜,我一直在寻找答案,但是到现在为止,没有任何方法对我有用。

问题在于每次我尝试使用 git clonegit pull 命令时,都会收到以下错误:

error: Failed connect to github.com:8080; Connection refused while accessing https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
fatal: HTTP request failed

这里是一个示例链接 https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack,但我的问题不仅限于此链接,所有的URL都有这个问题。


1
端口8080通常不与https:// URL关联。如果必须使用其他端口而非443端口,我期望看到的是8443端口。 - ta.speot.is
尝试使用 git://github.com/mxcl/homebrew.git - James M
实际上,我尝试了 "git clone git://github.com/mxcl/homebrew.git",它可以工作,而 "git clone https: //github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack" 一直返回相同的错误...你有任何想法这个问题可能来自哪里吗? - lgerard
git clone https://github.com/mxcl/homebrew.git 是正确的命令。 git clone https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack 明显不是正确的语法。我本来期望能得到更好的错误信息,但我从不指望它可以克隆存储库。 - Edward Thomson
2个回答

5

我已经尝试过了。很奇怪,因为即使我按照流程操作(取消http和https),它仍然返回一个http.proxy设置(kuzh.polytechnique.fr:8080),而没有https.proxy(这应该是正确的,不是吗?) - lgerard
谢谢!我忘记了我最近配置了git以通过代理工作。:P - Sheharyar

0

尝试在推送或拉取之前设置公共/私有RSA密钥对。

ssh-keygen -t rsa -C "youremailid@xxxx.com"

enter image description here


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接