title: ignore folders using .gitignore?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/343646/ignoring-directories-in-git-repos-on-windows">Ignoring directories in Git repos on Windows</a>  </p>
  </blockquote>
  
  
  
  <p>I have a few folders, cache scattered throughout a webapp.</p>
  
  <p>I am tracking the project with Git.</p>
  
  <p>I have added empty index.html files to each cache folder.</p>
  
  <p>I want to ignore all contents of the <code>cache</code> folders, but by default the folders are empty, hence the reason for the index.html.</p>
  
  <p>I have tried </p>
  
  <pre><code>*cache/*
  !*cache/index.html
  </code></pre>
  
  <p>But it is not ignoring them.</p>