git reset --soft HEAD~1
Example: Use this after a commit with the wrong message or when you want to split the commit into smaller commits.
Gotcha: This rewrites local history. Do not use it on a commit that you already pushed to a shared branch unless you know the team impact.