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?
Use:
git reset HEAD filepath
For example:
git reset HEAD om211/src/META-INF/persistence.xml