Why does git delete ignored files under `directory/*` but not under `directory/`
<p>As mentioned in <a href="http://blog.icefusion.co.uk/git-stash-can-delete-ignored-files-git-stash-u/" rel="nofollow">this post</a></p>

<blockquote>
  <p>To put it another way, if you have the following in your .gitignore:</p>
</blockquote>

<pre><code>/my-ignored-directory/*
</code></pre>

<blockquote>
  <p>Then you’re screwed – after a git stash save -u, my-ignored-file.txt
  will be gone (and sorry, it’s not in the stash you just created
  either).  Break out the undelete packages and hope for the best. 
  Alternatively, if you have the following in your .gitignore:</p>
</blockquote>

<pre><code>/my-ignored-directory
</code></pre>

<blockquote>
  <p>Then you’re golden – no worries, kick back, relax, my-ignored-file.txt
  will stay exactly where it was prior to the git stash save -u.</p>
</blockquote>

<p>Why is this difference? I'm also wondering if no files will be deleted if in my <code>.gitignore</code> file I have <code>/my-ignored-directory/</code> (with trailing slash)?</p>