【问题标题】:VS2017 Git fails to clone with Proxy CONNECT aborted errorVS2017 Git 无法克隆并出现代理连接中止错误
【发布时间】:2018-08-15 16:32:52
【问题描述】:

尝试在 Visual Studio 2017 的 VSTS 下从 git 克隆 repo,但出现以下错误:

 Git failed with a fatal error. 
 unable to access https://myaccount.visualstudio.com/_git/MyProject/: 
 Proxy CONNECT aborted

我在公司环境中使用代理来访问互联网。 已尝试在 devenv.exe.config 中的 system.net 中设置 defaultProxy 设置,但没有任何区别。

<system.net>
    <defaultProxy useDefaultCredentials="true">
    <proxy proxyaddress="http://proxyurl:8080" bypassonlocal="True" />
</defaultProxy>

Visual Studio 2015 可以正常运行。

【问题讨论】:

    标签: git visual-studio visual-studio-2017 azure-devops


    【解决方案1】:

    Visual Studio 2017 使用 Git 命令行,2015 使用 LibGit2。您现在还需要在 Git 全局设置中配置代理:

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-17
    • 2020-04-05
    • 1970-01-01
    • 2018-01-30
    • 2012-05-22
    • 1970-01-01
    • 1970-01-01
    • 2020-04-06
    相关资源
    最近更新 更多