git reset –hard # Revert uncommitted changes in index git clean -fxd # Remove newly created files that not in index
git clean -df git checkout -- .
For all tracked unstaged files use: git checkout -- . The . at the end is important.