title: Can't checkout to other branches because ignored file has local changes?
body: <p>I get:</p>
  
  <pre><code>$ git checkout mybranch
  error: Your local changes to the following files would be overwritten by checkout:
          .idea/workspace.xml
  Please, commit your changes or stash them before you can switch branches.
  Aborting
  </code></pre>
  
  <p>But <code>.idea/</code> is already in my <code>.gitignore</code>. If I do <code>git status</code>, there is also no changes showing up.</p>
  
  <p>Please advice.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Thanks for the advice. I wish I could go to <code>mybranch</code> and check, but I couldn't, because it wouldn't allow me to switch! Provided that it is the correct behaviour to ignore <code>.idea/</code> (they are project config files from IDE), what should I do now?
  My goal is to go to <code>mybranch</code> and merge it with <code>master</code>. You can think of <code>mybranch</code> as a production branch and master as dev branch. Now I want to update prod as master is stable enough.</p>