4

I know this issue is not new, I kept looking for the answer but until now nothing worked for me.

The issue is that each time I try a git clone or git pull command, I receive the following error:

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

(Here its https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack but it is just an example, I have this issue whith all URLs)

4

2 回答 2

5

检查您是否设置了 githttp.proxyhttps.proxy配置,并取消设置两者。请参阅拉取命令错误:无法连接到 github.com:8080

于 2013-04-23T11:43:52.517 回答
0

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

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

在此处输入图像描述

于 2014-12-22T06:08:48.010 回答