title: target/ vs /target/ in .gitignore
body: <p>I am using Eclipse (this is probably irrelevant) and I want to exclude Maven target folder from commit.</p>
  
  <p>There are <a href="https://stackoverflow.com/questions/991801/git-ignores-and-maven-targets">lots</a> of notations</p>
  
  <ol>
  <li><code>/target/**</code></li>
  <li><code>*/target/*</code></li>
  <li><code>/target/**</code></li>
  <li><code>target/</code></li>
  <li><code>/target/</code></li>
  </ol>
  
  <p>What is the difference?</p>
  
  <p>And what is the exact meaning of each of them?</p>