git reset-commit-hard-clean

Move backwards on the commit chain

Git alias:

reset-commit-hard-clean = !git reset --hard HEAD~1 && git clean -df

Example:

git reset-commit-hard-clean

See how to use this alias and related ones: