Git alias:
undo-commit-hard = reset --hard HEAD~1
Example:
git undo-commit-hard
See how to use this alias and related ones: