2017-09-11 62 views
-3

克隆链接每当我尝试使用下面的代码以克隆的git回购: git clone https://github.com/sudhsudhi/coursera_test.git 我收到以下错误:无法使用Git

enter fatal: unable to access 'https://github.com/sudhsudhi/coursera_test.git/': Failed to connect to github.com port 443: Connection refused 

为什么会出现这种错误,以及如何纠正? 我猜测它与防火墙或代理有关。我是使用git的新手,但我不确定。 我正在使用代理服务器。

回答

1

尝试通过执行以下操作更新的全球混帐配置文件:

git config --global http.proxy http://user:[email protected]:xxxx 

与您的用户名,密码和XXXX替换为端口号。

+0

我早些时候尝试过,但仍然收到错误说'无法解析代理'http'。我想我在编写代理网址时发生错误。你能告诉我如何找到代理网址。 –

+0

@SudhishPuliyathamil检查此答案:https://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using – Bricky

+0

谢谢,但问题是别的。我的代理帐户由于某种原因被我的研究所禁用。我尝试与我的朋友帐户一起工作一切正常。 –