$ vi a $ git add a $ vi a $ git diff diff --git a/a b/a index 79ca77c..e63ef0c 100644 --- a/a +++ b/a @@ -1 +1 @@ -Hello,I'm a!!! +Hello,I'm a!!!..... $ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage)
modified: a
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: a $ git checkout -- a $ git status On branch master Changes to be committed: (use "git reset HEAD <file>..." to unstage)
modified: a
|