【问题标题】:Unable to clone link using git无法使用 git 克隆链接
【发布时间】:2017-09-11 17:30:48
【问题描述】:

每当我尝试使用以下代码在 git 中克隆 repo 时: git clone https://github.com/sudhsudhi/coursera_test.git 我收到以下错误:

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

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

【问题讨论】:

    标签: git github proxy clone windows-firewall


    【解决方案1】:

    尝试通过执行以下操作更新您的全局 git 配置文件:

    git config --global http.proxy http://user:password@proxy:xxxx 
    

    用你的用户名、密码替换它,xxxx是端口号。

    【讨论】:

    • 我之前尝试过,但仍然收到一条错误消息,提示“无法解析代理“http”。我想我在编写代理 url 时出错了。你能告诉我如何找到代理网址。
    • @SudhishPuliyathamil 检查这个答案:superuser.com/questions/346372/…
    • 谢谢,但问题出在别的地方。我的代理帐户由于某种原因被我的研究所禁用。我尝试使用我的朋友帐户一切正常。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多