我知道这个问题并不新鲜,我一直在寻找答案,但是到现在为止,没有任何方法对我有用。
问题在于每次我尝试使用 git clone
或 git 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都有这个问题。
git://github.com/mxcl/homebrew.git
? - James Mgit clone https://github.com/mxcl/homebrew.git
是正确的命令。git clone https://github.com/mxcl/homebrew.git/info/refs?service=git-upload-pack
明显不是正确的语法。我本来期望能得到更好的错误信息,但我从不指望它可以克隆存储库。 - Edward Thomson