title: .gitignore: Ignore one specific directory and that one only
body: <p>I have this directory structure</p>
  
  <pre><code>./bin/&lt;java class files&gt;
  ./sometool/bin/&lt;files for the tool&gt;
  </code></pre>
  
  <p>...as well as some other files and directories.</p>
  
  <p>It seens that if I want to avoid tracking the java class files, I should add this to the .gitignore file:</p>
  
  <pre><code>bin/
  </code></pre>
  
  <p>However, it appears that this also ignores the path ./sometool/bin</p>
  
  <p>Is that correct, and if so, how do I get the behavior I want.</p>