git undo-commit

Undo a commit with a soft reset

Git alias:

undo-commit = reset --soft HEAD~1

Example:

git undo-commit

See how to use this alias and related ones: