git undo-commit-hard

Undo a commit with a hard reset

Git alias:

undo-commit-hard = reset --hard HEAD~1

Example:

git undo-commit-hard

See how to use this alias and related ones: