gitignore, how to exclude a specific directory
<p>I'm trying to utilize a <code>.gitignore</code> file to exclude a specific directory, but I'm having some trouble. I looked up how to do this previously on a few forums, including stackoverflow, and while I found it a bit confusing, I had thought I understood it, but it seems to not be working as I thought.</p>

<p>So I have a repo here, and there's a specific directory in the top level called "images" that I want to exclude. Here's what I put in my <code>.gitignore</code> file:</p>

<pre><code>images/
</code></pre>

<p>I added and committed everything, all well and good, it ignored the images director in the top level. But then I realized it also ignored forums/images. So what's the deal? How do I handle ignoring a specific directory, but not any others with the same name?</p>