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?
A safe and long way:
git branch todelete
git checkout todelete
git add .
git commit -m "I did a bad thing, sorry"
git checkout develop
git branch -D todelete