title: git commit error: pathspec 'commit' did not match any file(s) known to git
body: <p>I am trying to upload a Ruby app to Heroku. I start with <code>git init</code> and then I type <code>git add .</code> and then I use <code>git commit -m initial commit</code>. </p>
  
  <p>Whenever I use <code>git commit -m</code>, I receive an error message saying:</p>
  
  <blockquote>
    <p>git commit error:pathspect 'commit' did not match any file(s) known to git. </p>
  </blockquote>
  
  <p>I have been told that this is happening because the arguments are in the wrong order. </p>
  
  <p>The thing I noticed is that when I use <code>git add .</code> it will not list the files that are being added because it will just go to the next line. </p>
  
  <p>I suspect that I am having this problem because my files are not really being added.</p>
  
  <p>I would appreciate any advice about how to correct this problem. </p>