@
ericgui 实际上 Git v.2.x 中 `git add .`会跟踪删除记录,如下所示:
```
{ New folder } » git init /cygdrive/c/Users/Explorare/Desktop/New folder
Initialized empty Git repository in /cygdrive/c/Users/Explorare/Desktop/New folder/.git/
{ New folder } HEAD » echo Change me > change-me
{ New folder } HEAD » echo Delete me > delete-me
{ New folder } HEAD » git add change-me delete-me
{ New folder } HEAD » git status /cygdrive/c/Users/Explorare/Desktop/New folder
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: change-me
new file: delete-me
{ New folder } HEAD » git commit -m initial
[master (root-commit) 4b1ff0d] initial
2 files changed, 2 insertions(+)
create mode 100644 change-me
create mode 100644 delete-me
{ New folder } master » echo OK >> change-me
{ New folder } master » rm delete-me /cygdrive/c/Users/Explorare/Desktop/New folder
{ New folder } master » echo Add me > add-me
{ New folder } master » git status /cygdrive/c/Users/Explorare/Desktop/New folder
On branch master
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: change-me
deleted: delete-me
Untracked files:
(use "git add <file>..." to include in what will be committed)
add-me
no changes added to commit (use "git add" and/or "git commit -a")
{ New folder } master » git add . /cygdrive/c/Users/Explorare/Desktop/New folder
{ New folder } master » git status /cygdrive/c/Users/Explorare/Desktop/New folder
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: add-me
modified: change-me
deleted: delete-me
{ New folder } master » git --version /cygdrive/c/Users/Explorare/Desktop/New folder
git version 2.8.3
```