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