2013-04-23 120 views
4

我知道这个问题并不新鲜,我一直在寻找答案,但直到现在没有任何工作为我。错误:无法连接到github.com:8080;拒绝连接

的问题是,每一次我尝试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相关联。 8443是我期望在这里看到的,如果它是443以外的东西。 – 2013-04-23 11:20:12

+0

试试'git:// github.com/mxcl/homebrew.git'? – 2013-04-23 11:21:35

+0

其实我试过“git clone git://github.com/mxcl/homebrew.git”,它的工作原理是“git clone https://github.com/mxcl/homebrew.git/info/refs?service = git-上传包“不断返回相同的错误...任何想法问题可能来自哪里? – lgerard 2013-04-23 11:45:50

回答

4

检查您是否有git http.proxyhttps.proxy配置集,并取消设置。请参阅pull command error : Failed connect to github.com:8080

+0

我已经试过了。这很奇怪,因为即使我遵循这个流程(取消设置http和https),它仍会返回一个http.proxy设置(kuzh.polytechnique.fr:8080),而不会返回https.proxy(这应该是正确的,否?) – lgerard 2013-04-23 11:54:34

+0

谢谢!我忘了我最近配置git通过代理工作。 :P – Sheharyar 2014-03-03 15:25:44

0

尝试在推或拉之前设置公钥/私钥rsa密钥对。 //网址:

ssh-keygen -t rsa -C "[email protected]" 

enter image description here

相关问题