[root@node python-data02]# ll .git/total 52drwxr-xr-x 2 root root 4096 May 12 12:24 branches-rw-r--r-- 1 root root 17 May 14 11:55 COMMIT_EDITMSG-rw-r--r-- 1 root root 229 May 16 17:02 config-rw-r--r-- 1 root root 73 May 12 12:24 description-rw-r--r-- 1 root root 23 May 12 14:29 HEADdrwxr-xr-x 2 root root 4096 May 12 12:24 hooks-rw-r--r-- 1 root root 675 May 16 17:03 index # git add a 把文件提交到了暂存区drwxr-xr-x 2 root root 4096 May 12 12:24 infodrwxr-xr-x 3 root root 4096 May 12 12:24 logsdrwxr-xr-x 78 root root 4096 May 14 11:55 objects-rw-r--r-- 1 root root 41 May 12 12:52 ORIG_HEAD-rw-r--r-- 1 root root 224 May 16 17:01 packed-refsdrwxr-xr-x 5 root root 4096 May 12 12:24 refs使用git add . 大概* 添加目次中所有改动过的文件
[root@node python-data02]# git add . [root@node python-data02]# git status# On branch master# Changes to be committed:# (use "git reset HEAD <file>..." to unstage)## new file: a# new file: b# new file: c删除Git暂时存放的d文件