Possible Duplicate:
git add -A, git commit in one command?
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:
git add <directory name>
git commit -m 'commit comment'
This doesn't sound right because I know I (and many other people) will forget to call git add <directory name>
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?