title: VSCode: use WSL Git instead of Git for Windows
body: <p>I would like to use WSL (Bash on Windows) Git with VSCode instead of Git for Windows to avoid multiple Git installations.</p>
  
  <p>I created a simple bat script to emulate <code>git.exe</code> comportment by redirecting git commands in WSL. It works nicely in CMD but not with VSCode. Also, WSL is my default terminal in VSCode.</p>
  
  <p>VSCode <strong>settings.json</strong>:</p>
  
  <pre class="lang-json prettyprint-override"><code>{
      "git.path": "D:\\tools\\git.bat",
      "terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\bash.exe"
  }
  </code></pre>
  
  <p>and <strong>git.bat</strong>:</p>
  
  <pre class="lang-bat prettyprint-override"><code>@echo off
  bash -c 'git %*'
  </code></pre>
  
  <p>Any idea to make VSCode working with WSL Git ?</p>