How to delete all changes from the working directory including new untracked files. I know that git checkout -f does that, but it doesn't delete new untracked files created since the last commit.
Does anybody have an idea how to do that?
Simple way to do this:
Step 1: Revert modified files using the following command:
$ git checkout -f
Step 2: Remove untracked files:
$ git clean -fd