title: Why is Git committing the old version of a file?
body: <p>I have a serious problem: Roughly two times daily, git is improperly committing an <em>older</em> version of a file that has more current modifications at the time of commit.</p>
  
  <p>Workflow of the bug:</p>
  
  <ul>
  <li><code>Example.php</code> is modified continuously for three hours.</li>
  <li>At 17:42, the file is committed and goes into SHA <code>200a5a3</code>.</li>
  <li>At 18:22, on reviewing the pull request, I realize that the file committed was a previous (never committed) version, coded [according to PHPStorm] at 15:34, one hour 8 minutes <strong>before</strong> the file was committed.</li>
  <li>The working copy's file is correct, and its last modification timestamp is <code>2014-12-30 17:04</code>, a full 38 minutes prior to the commit.</li>
  </ul>
  
  <p>How is it even possible for git to 'remember' what the file was like at 3:30 when i didn't commit the changes until 5:42, anyway? Shouldn't it only know about the 5:04 version?</p>
  
  <p>But more importantly, why is it happening and how can I stop it?</p>