To revert changes done to your working directory
git checkout .
To revert changes made to the index
git reset --hard
Warning: This will reset all unpushed commits to master.
To revert a change that you have committed
git revert <commit 1> <commit 2>
To remove untracked files
git clean -f
To remove untracked directories
git clean -fd