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?
get G2 at https://github.com/orefalo/g2
G2 will help you learn the git command line by providing easy to use macros.
the command is
g freeze -m "commit msg".It works with additions, deletions and changes. you are freezing a state.. which should have been the way to be from day one.