tags:

views:

58

answers:

2

How to stage and commit all the files including the newly added files using a single command.

+3  A: 

Does

git add -A && git commit

count as a "single command"?

Ian Clelland
A: 

You can write a small script (look at Ian Clelland's answer) called git-commitall which uses several git commands to perform what you want to do.
Place this script in your anywhere in your $PATH. You can call it by git commitall ... very handy!

Found here

tanascius
The answer below that one using aliases looks good too.
Dana the Sane
The whole thread is a good reading ... that's why I linked it ^^
tanascius