【问题标题】:Git proxy failure need asistanceGit 代理失败需要帮助
【发布时间】:2014-06-20 13:27:02
【问题描述】:

我有这个错误我无法连接到代理我花了 4-5 个小时在网上摆弄寻找线索,但我无法解决这个问题..

我使用的是 Windows azure,我只有代理问题。

我的命令如下:

1.代理连接

git config --global http.proxy http://<username>:<password>@mapevent.azurewebsites.net:443

2.克隆错误

git clone https://<username>@mapevent.scm.azurewebsites.net:443/mapevent.git

Cloning into 'mapevent' ...

fatal: unable to access 'https://<username>@mapevent.scm.azurewebsites.net:443/mapevent.git/': Recv failure: Connection was reset

我也尝试过使用端口 8080,但说“无法解析”并使用推送,但似乎都失败了。

我是 Git 新手,我没有进步 :(

请帮帮我,我有一个项目要在接下来的几周内完成。

【问题讨论】:

    标签: git proxy connection


    【解决方案1】:

    http://mapevent.azurewebsites.net/ 似乎不需要代理。它是您要克隆的远程源 URL 的一部分,但页面“How to Deploy an Azure Web Site”根本没有提到“代理”。 page using Git 不是。

    所以一定要删除代理,然后尝试克隆:

    git config --global --unset-all http.proxy
    

    如果您需要代理来访问互联网,您应该已经准备好HTTP_PROXY(和HTTPS_PROXY)环境变量(正如我在“could not resolve host github.com error while cloning remote repository in git”中提到的那样)。

    但是那个代理 url(如果你真的使用一个)肯定不会是 '&lt;username&gt;:&lt;password&gt;@mapevent.azurewebsites.net:443':这是你要克隆的 url 的一部分。

    【讨论】:

    • 非常感谢!我不知道。
    猜你喜欢
    • 1970-01-01
    • 2020-04-27
    • 1970-01-01
    • 1970-01-01
    • 2021-07-29
    • 2010-11-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多