title: git still shows files as untracked despite .gitignore and rm -r --cached. What did I do wrong?
body: <p>I'm not sure what I'm doing wrong in this case with my .gitignore file, but these files keep showing up.</p>
  
  <h2>Background</h2>
  
  <p>I'm using Jekyll to build a blog. Jekyll generates <code>_site</code> and <code>.sass-cache</code> directories when it begins serving.</p>
  
  <p>I previously committed these directories before realizing I wanted to ignore them.</p>
  
  <p>To be overly cautious, I added all of the following lines to my <code>.gitignore</code>:</p>
  
  <pre><code>##Jekyll
  /_site/
  _site/
  _site
  /.sass-cache/
  .sass-cache/
  .sass-cache
  </code></pre>
  
  <p>Since I knew I'd committed these files previously, I:</p>
  
  <ul>
  <li>Committed the updated <code>.gitignore</code> file.</li>
  <li>did a <code>git rm -r --cached .</code></li>
  <li>deleted the <code>_site</code> and <code>.sass-cache</code> folders</li>
  <li>ran a <code>git add .</code> and <code>git status</code> showed that the working directory was clean</li>
  </ul>
  
  <h2>Problem</h2>
  
  <p>Despite all of that, the updated .gitignore file, and verifying (I think?) that things are clean and good, whenever I run <code>bundle exec jekyll serve</code> and jekyll generates the files, I see <code>.sass-cache</code> and <code>_site</code> show up in my untracked files.</p>
  
  <h2>Question</h2>
  
  <ul>
  <li>What am I doing wrong here? Is my .gitignore formed improperly? </li>
  <li>How can I ensure that git never shows these directories in the untracked list?</li>
  </ul>
  
  <p>The .gitignore in its current state <a href="https://github.com/SeanKilleen/seankilleen.github.io/blob/1503b5b9125914128c893211dff0d0bac9fe08a6/.gitignore" rel="noreferrer">can be found here</a>.</p>