Git alias:
undo-to-pristine = !git reset --hard && git clean -dffx
Example:
git undo-to-pristine
See how to use this alias and related ones: