title: Ignore .git folder in sub folder
body: <p>Is it possible to add a sub folder with a .git folder to a repo, without Git treating it like a submodule? I've tried different methods to ignore that .git folder, but nothing this far has worked.</p>
  
  <p>I have tried in /.gitignore:</p>
  
  <pre><code>/vendor/**/.git/
  </code></pre>
  
  <p>..and in /vendor/.gitignore:</p>
  
  <pre><code>.git/
  </code></pre>
  
  <p>The .git folder I want to ignore is in /vendor/foo/bar/.</p>