1

Trying to clone a repo from git under VSTS in Visual Studio 2017 but get the following error:

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

Am in a corporate environment with a proxy in place for internet access. Have tried setting the defaultProxy setting in system.net in the devenv.exe.config but makes no difference.

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

Visual Studio 2015 works without issue.

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
Brian
  • 23
  • 2
  • 8

1 Answers1

0

Visual Studio 2017 uses the Git commandline, 2015 uses LibGit2. You'll need to configure the proxy in your Git global settings as well now:

jessehouwing
  • 106,458
  • 22
  • 256
  • 341
  • Thanks. I also found https://stackoverflow.com/questions/44285651/set-proxy-for-microsoft-git-provider-in-visual-studio to be useful – Brian Mar 07 '18 at 22:43