- http://stackoverflow.com/questions/5807137/how-to-revert-uncommitted-changes-including-files-and-folders
- for only current directory use ==> $git checkout -- .
- Use "git checkout -- ..." to discard changes in working directory
- git checkout -- * or
- git checkout -- app/views/posts/index.html.erb
- for new file $git reset --hard / then / $git clean -fdx