title: gitignore directory exception not working
body: <p>I have the following folder structure:</p>
  
  <pre><code>public
      media
          catalog
              product
              category
          private
          tmp
          var
          test
  </code></pre>
  
  <p>I want to gitignore everything in the <code>media</code> directory except for <code>catalog/category</code> and <code>private</code> </p>
  
  <p>My gitignore I am trying is:</p>
  
  <pre><code>public/media/*
  !public/media/catalog/category/
  !public/media/private
  </code></pre>
  
  <p>But it doesn't work.  Any new files added to the <code>category</code> or <code>private</code> directories are not available to add.</p>
  
  <p>I could just git add force but I would like this done through the gitignore if possible</p>