title: Strange behavior of .gitignore exclude folder
body: <p>I have read <a href="https://www.atlassian.com/git/tutorials/saving-changes/gitignore" rel="nofollow noreferrer">this</a> guide and says:</p>
  
  <p><a href="https://i.stack.imgur.com/wwOaE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wwOaE.png" alt="enter image description here"></a></p>
  
  <p>Why is the directory "Timer/RoutineTimer/.idea/" not ignored in my repository?</p>
  
  <p><a href="https://github.com/christianrocchetti/Timer" rel="nofollow noreferrer">My repository</a> </p>