title: .gitignore can't ignore folder directories or files
body: <p>My problem here that i get a list ignore files,dirs but they still be available for committing.</p>
  
  <p>For example: I just remove cache by command: </p>
  
  <blockquote>
    <p>git rm --cached *DATN_2015.BLL.dll</p>
    
    <p>git commit -m "Delete some files from repository"</p>
  </blockquote>
  
  <p>so i get all these files and commit to remove > push. Then, i update my file: </p>
  
  <blockquote>
    <p>.gitignore</p>
  </blockquote>
  
  <p>with:</p>
  
  <blockquote>
    <p>*DATN_2015.BLL.dll</p>
  </blockquote>
  
  <p>but i don't know why when i rebuild project's solutions, they appear a new change for this file DATN_2015.BLL.dll and it still be available for committing.</p>