Undo the Last Git Commit

Quick guide to undo the last Git commit with reset and revert commands plus safe tips for local and pushed changes.