Last Updated: February 25, 2016
·
259
· qbraksa

Undo changes with Git

Return to the last committed state

git reset --hard HEAD

To restore one file

git checkout HEAD [name_of_file]

To clear untracked files and directories.

git clean -df