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