title: How To Not ignore based on keyword in .gitignore
body: <p>Because I'm using microsoft nuget, I want to ignore all the package directories in my projects (there are a huge number of these and those files are all temporary).  Unfortunately, in the JavaScript library I also have in the same repository, I need the package directory.  So, I have in my .gitignore</p>
  
  <pre><code>...
  package
  ...
  </code></pre>
  
  <p>But, in my directory</p>
  
  <pre><code>/JavaScript/package/importantfiles
  </code></pre>
  
  <p>I want to not ignore this file.</p>
  
  <p>How can I let all "package" get ignored, but in the directory /JavaScript/... I want package to be included in source control?</p>