Is there a git command to revert all uncommitted changes in a working tree and index and to also remove newly created files and folders?
If you want to revert the changes only in current working directory, use
git checkout -- .
And before that, you can list the files that will be reverted without actually making any action, just to check what will happen, with:
git checkout --