title: Clear git local cache
body: <p>I have a Webstorm project that I was about to commit, but before pressing the commit button in the Git Windows GUI, I remembered that I don't want to commit my <code>.idea</code> folder content. </p>
  
  <p>So I used the website that auto generates <code>.gitignores</code> for certain IDEs and added it to my <code>.gitignore</code> file. </p>
  
  <p>All <code>.idea</code> files that are explicitly ignored are still showing up to commit, despite me removing and re-added the files in question. </p>
  
  <p>I've also committed the gitignore file without any other files, and re-pasted my content, but it still is not ignoring the .idea files.</p>
  
  <p>How do I tell Git to refresh or clear its cache?<br>
  I tried /cd ing into the directory in question, and typing </p>
  
  <p><code>git clean -n</code> </p>
  
  <p>but no files show up.</p>