title: Gitignore doesn't work properly
body: <p>I have follwoing dir structure</p>
  <p><img src="https://i.stack.imgur.com/cBgDl.png" alt="enter image description here" /></p>
  <p>and here is content of .gitignore</p>
  <p><code>conf.php</code></p>
  <p>The problem is, when I change contents conf.php and try to commit something, GIT detects <code>conf.php</code> as changed file again. In fact it must be ignored.<br />
  I have commited it once. I want to ignore it from now. What am I missing?</p>
  <h1>Update</h1>
  <p>I tried following:</p>
  <ol>
  <li><p>Added conf.php to gitignore</p>
  </li>
  <li><p>removed it from cache <code>git rm --cached conf.php.</code></p>
  <p>But now, when I rescan project, it wants to stage <code>conf.php</code> as removed.</p>
  </li>
  </ol>
  <p><img src="https://i.stack.imgur.com/Pypac.png" alt="enter image description here" /></p>
  <p>Its not what I want.</p>
  <p>I want to keep it on remote repo and ignore future (from now) changes in local repo.</p>