执行git status 命令
则
$ git status
On branch test3
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: .gitignore
new file: test15.txt
deleted: test2.txt
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: test8.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
dddd.txt
由上图可知,共有三种文件状态
Changes to be committed: Index 暂存区,
Changes not staged for commit: working directory 工作目录
Untracked files: