title: Git .gitignore to ignore only folder in root directory
body: <p>Here is my .gitignore</p>
  
  <pre><code>static/
  </code></pre>
  
  <p>and I have installed git on the folder named <code>project</code> there is a folder named <code>static</code> and another folder called <code>app</code> and inside the <code>app</code> folder, there is another folder <code>static</code>. The above <code>.gitignore</code> ignore both static folders, That is not what I want.</p>
  
  <p>What I want is to ignore the folder <code>project/static/</code> not the folder <code>project/app/static/</code> How can I do that? </p>