$ rm readme.md $ git status On branch temp 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)
deleted: readme.md
no changes added to commit (use "git add" and/or "git commit -a") $ git rm readme.md $ git status On branch temp Changes to be committed: (use "git reset HEAD <file>..." to unstage)
deleted: readme.md
$ git reset --hard HEAD HEAD is now at 645c351 Modified commit2 $ git status On branch temp nothing to commit, working tree clean $ git rm readme.md rm 'readme.md' $ git status On branch temp Changes to be committed: (use "git reset HEAD <file>..." to unstage)
deleted: readme.md
|