title: .gitignore not ignoring folder
body: <p>I have a project in Laravel and I have forum in public directory which I don't want to push it to repository, so I write in .gitignore:</p>
  
  <pre><code>### Laravel ###
  vendor/
  node_modules/
  
  # Laravel 5 &amp; Lumen specific
  bootstrap/cache/
  .env.*.php
  .env.php
  .env
  
  # SMF
  public/forum/
  
  # Rocketeer PHP task runner and deployment package. https://github.com/rocketeers/rocketeer
  .rocketeer/
  </code></pre>
  
  <p>However, the entry still appears in <strong>Git status</strong><br>
  Here is my tree with it:<br>
  +...<br>
  + public<br>
  ++ forum<br>
  +++...<br>
  +...<br>
  Where is the problem?</p>
  
  <p>Directory structure
  <a href="https://i.stack.imgur.com/MTsxL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/MTsxL.png" alt="enter image description here"></a></p>
  
  <p>Git status
  <a href="https://i.stack.imgur.com/ayG3j.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ayG3j.png" alt="enter image description here"></a></p>