title: .gitignore wildcard suffix exclusion with negation for subfolder
body: <p>I have a .gitignore which is like this:</p>
  
  <pre><code>*.png
  *.jpg
  *.gif
  !0/*.png
  !0/*.jpg
  !0/*.gif
  </code></pre>
  
  <p>I want to ignore all image files (.png, .jpg, .gif) in all folders but not in the folder <code>/0/</code>. All image files in this folder should not be ignored.</p>
  
  <p>I tried with the above .ignore file but it is not working as image files in <code>/0/</code> are still ignored. How to write this correctly?</p>