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?
From Git help:
Changes to be committed: (use "git restore --staged ..." to unstage) Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git restore ..." to discard changes in working directory)