Is it possible to skip the staging area and (also) commit untracked, new files to git in a single built-in, command-line command ? If not, what are the alternatives ?
http://git-scm.com/book/en/Git-Basics-Recording-Changes-to-the-Repository
Providing the -a option to the git commit command makes Git automatically stage every file that is already tracked before doing the commit, letting you skip the git add part:
$ git commit -a -m 'added new benchmarks'
Thanks.
See Question&Answers more detail:os