VS2017 Git无法克隆代理CONNECT中止错误

时间:2018-03-07 14:23:06

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

尝试在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可以正常运行。

1 个答案:

答案 0 :(得分:0)

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