title: what does tmp/**/* ignore in .gitignore?
body: <p>In my .gitignore file I have </p>
  
  <pre><code>tmp/**/*
  </code></pre>
  
  <p>What files does it exclude? Will it exclude all tmp and files/folders under it?</p>
  
  <p>My other question is, is this different from the following?</p>
  
  <pre><code>tmp/*
  </code></pre>
  
  <p>Edit:</p>
  
  <p>Reason I ask is because I a have this</p>
  
  <pre><code>.vimbackup/**/*
  </code></pre>
  
  <p>but it is NOT ignoring a file like <code>.vimbackup/.somebackup~</code></p>
  
  <p>However, if I do </p>
  
  <pre><code>.vimbackup/*
  </code></pre>
  
  <p>it DOES ignore the file <code>.vimbackup/.somebackup~</code>  Seems kinda backwards to me</p>