How can I undo every change made to my directory after the last commit, including deleting added files, resetting modified files, and adding back deleted files?
There are two commands which will work in this situation,
root>git reset --hard HEAD~1
root>git push -f
For more git commands refer this page