title: git rm * doesn't remove all files in one go
body: <p>I was trying out some sample instructions of git and came across this peculiar case that when we do a <code>git rm *</code>, it doesn't delete the <code>.*</code> files in the first attempt.
  Why is it so?</p>
  
  <pre><code>mkdir -p test_repo1/folder &amp;&amp; cd test_repo1
  touch .testfile1 .testfile2 testfile3 folder/testfile4 folder/.testfile5
  git init &amp;&amp; git add . &amp;&amp; git commit -m "test commit"
  </code></pre>
  
  <p>If now I do a <code>git rm</code> as follows, I have to do it a second time to remove all the files</p>
  
  <pre><code>$ git rm -r *
  rm 'folder/.testfile5'
  rm 'folder/testfile4'
  rm 'testfile3'
  
  $ git rm -r *
  rm '.testfile1'
  rm '.testfile2'
  </code></pre>
  
  <p>Why doesn't git remove all files in the first attempt itself? Also, why is this happening for files withing the repo root only?</p>
  
  <p>Interestingly, if all I have are those <code>.testfiles</code>, then git removes them in the first attempt itself. </p>
  
  <p>I am using git version <code>1.7.9.5</code></p>