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.
Using a single, built-in, command-line command? No.
Using two commands:
git add -A
git commit
Using a custom alias:
Add this to .gitconfig:
[alias]
commituntracked = "!git add -A; git commit"
Then you can do
git commituntracked