就像在
我们可以用
git commit [--only] a b c -m "only part of files"
但是,在以下示例中:
$ mkdir t
$ cd t
$ git init
Initialized empty Git repository in /mnt/c/test/git-test/t/.git/
$ touch a b
$ git add .
$ git commit a -m a
[master (root-commit) c7939f9] a
1 file changed, 0 insertions(+), 0 deletions(-)