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?
I think you can use the following command: git reset --hard
git reset --hard