Why don't you just give it a try?
$ echo a > a; echo b > b $ git init Initialized empty Git repository in /home/me/tmp/a/.git/ $ git add ab $ git commit -m "hello" [master (root-commit) 184d670] hello 2 files changed, 2 insertions(+), 0 deletions(-) create mode 100644 a create mode 100644 bb > a; echo a > b $ git commit -am "other commit" [master 4ec9bb9] other commit 2 files changed, 2 insertions(+), 2 deletions(-)
Journal:
commit 4ec9bb943eb230923b4669ef6021124721cb9808 Author: me Date: Tue May 17 21:02:41 2011 +0200 other commit a | 2 +- b | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) commit 184d670b7862357cd8a898bfcaa79de271c09bd7 Author: me Date: Tue May 17 21:02:23 2011 +0200 hello a | 1 + b | 1 + 2 files changed, 2 insertions(+), 0 deletions(-)
So, all is well.
But: if you want an official to put this on git, check out the gitcli man page. It states:
splitting short options into separate words (prefer git foo -a -b to git foo -ab, the latter may not even work)
Thus, your mileage may vary, and a separate form is preferable to the git command.
source share