git reset-to-pristine

Reset commits and clean all differences

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: