title: gitignore in PHPStorm
body: <p>I create a .gitignore file and add two folders.</p>
  
  <p>But when I click "commit directory" in PHPStorm my folders are always in my commit changes.</p>
  
  <pre><code>magento/media/
  magento/var/
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/AMzzh.png" alt="enter image description here"></p>
  
  <p>What is going wrong?</p>
  
  <p>In Terminal it works great</p>
  
  <p><img src="https://i.stack.imgur.com/h5foN.png" alt="enter image description here"></p>