title: Difference in the paths in .gitignore file?
body: <p>I've been using git but still having confusion about the <em>.gitignore</em> file paths.</p>
  
  <p>So, what is the difference between the following two paths in <em>.gitignore</em> file?</p>
  
  <pre>
  tmp/*
  public/documents/**/*
  </pre>
  
  <p>I can understand that <code>tmp/*</code> will ignore all the files and folders inside it. Am I right?
  But what does that second line path mean?</p>