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 have an uncommitted change (its only in your working copy) that you wish to revert to the copy in your latest commit, do the following:
git checkout filename