这个文件中内容是one,并且已经保存在版本库中了,现在vim改成ones,并且git add到stage上,现在,此时,我又用vim改成onespls,现在git status一下可以看到:
$ git status
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: test2
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)
用户2887943897
这个文件中内容是one,并且已经保存在版本库中了,现在vim改成ones,并且git add到stage上,现在,此时,我又用vim改成onespls,现在git status一下可以看到: $ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage)
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)
现在就有俩个方向了,一个待commit,一个待add到stage上,选第一条路,
最早回到one。(而one正是版本库中保存的版本)