Git: Revert from Uncommitted Changes

# Revert changes to modified files.
git reset --hard

# Remove all untracked files and directories.
git clean -fd

If you want to revert the changes only in current working directory, use

git checkout -- .
This entry was posted in git and tagged . Bookmark the permalink.