为什么git commit -am
在我的初始提交上不起作用,但之后却起作用?
$ touch test.txt
$ ls -a
. .. .git test.txt
$ git commit -am "Initial commit"
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# test.txt
nothing added to commit but untracked files present (use "git add" to track)
$