title: Git - Automatically track all files in a directory
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4298960/git-add-a-git-commit-in-one-command">git add -A, git commit in one command?</a>  </p>
  </blockquote>
  
  
  
  <p>If I understand correctly, when new files are added to a directory when using git, I have to call more than one command to make sure that the files are committed:</p>
  
  <pre><code>git add &lt;directory name&gt;
  git commit -m 'commit comment'
  </code></pre>
  
  <p>This doesn't sound right because I know I (and many other people) will forget to call <code>git add &lt;directory name&gt;</code> and then end up with a project that is missing all the new files that were created. It seems that I should be able to commit the entire directory, including any and all new files, in one command without having to specify in a previous command to add all new files to the commit. How do I do this?</p>