title: git still shows files as modified after adding to .gitignore
body: <p>i'm adding this to <strong>.gitignore</strong> file</p>
  
  <pre><code>.idea/*
  </code></pre>
  
  <p>but anyway the status is:</p>
  
  <pre><code>#       modified:   .gitignore
  #       modified:   .idea/.generators
  #       modified:   .idea/dovezu.iml
  #       modified:   .idea/misc.xml
  #       modified:   .idea/workspace.xml
  </code></pre>
  
  <p>what am i doing wrong ?
  i even added .idea/* to the global <strong>~/.gitignore_global</strong>
  but git status, anyway shows me:</p>
  
  <pre><code>#       modified:   .gitignore
  #       modified:   .idea/.generators
  #       modified:   .idea/dovezu.iml
  #       modified:   .idea/misc.xml
  #       modified:   .idea/workspace.xml
  </code></pre>