title: VS 2015 + Bower: Does not work behind firewall
body: <h2>Problem</h2>
  
  <p>In Visual Studio 2015, using bower, my package restores fail when behind a firewall with an error similar to:</p>
  
  <blockquote>
    <p>ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/jzaefferer/jquery-validation.git", exit code of #-532462766</p>
  </blockquote>
  
  <p>I have updated my git config to use <code>http</code> instead of git. When I run from my command line, the command is successful:</p>
  
  <p><img src="https://i.stack.imgur.com/PGidw.png" alt="enter image description here"></p>
  
  <p>But Visual Studio or one of its components appears to be using <code>git</code> instead of <code>http</code> regardless.</p>
  
  <h2>Background &amp; First Attempt to Resolve</h2>
  
  <p>Using Visual Studio 2015 and Bower for package management. It works great when not behind a firewall, but when behind a firewall I cannot use the <code>git://</code> protocol.</p>
  
  <p>The solution -- documented in many other places on SO (<a href="https://stackoverflow.com/questions/15669091/bower-install-using-only-https">example</a>), is to run:</p>
  
  <pre><code>git config --global url."http://".insteadOf git://
  </code></pre>
  
  <p>I did this, and now my <code>git config -l</code> looks like:</p>
  
  <pre><code>ore.symlinks=false
  core.autocrlf=true
  color.diff=auto
  color.status=auto
  color.branch=auto
  color.interactive=true
  pack.packsizelimit=2g
  help.format=html
  http.sslcainfo=/bin/curl-ca-bundle.crt
  sendemail.smtpserver=/bin/msmtp.exe
  diff.astextplain.textconv=astextplain
  rebase.autosquash=true
  user.name=Sean Killeen
  user.email=SeanKilleen@gmail.com
  url.http://.insteadof=git://
  </code></pre>
  
  <p>But despite this, either Visual Studio / npm is not respecting my configuration, or is using an old, cached version of it.</p>
  
  <h2>Second Attempt to Resolve</h2>
  
  <p>Per <a href="https://github.com/npm/npm/issues/5257#issuecomment-60441477" rel="nofollow noreferrer">this thread on npm issue</a>, I saw that npm (which presumably bower is using in VS) uses the <code>git@</code> syntax. Even though this isn't what I saw in the output, I figured I'd give it a shot.</p>
  
  <p>I ran:</p>
  
  <pre><code>git config --global url."https://github.com/".insteadOf git@github.com:
  </code></pre>
  
  <p>I then restarted Visual Studio, but the issue still persists. The fix I'd read about was likely never applicable.</p>
  
  <p>Any ideas on how to fix?</p>