1
为什么git commit -am
不适用于我的初始提交,但之后可用?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)
$
+1谢谢你的非常有用的信息! – Anthony