Single typo in the most recent commit's message? Fastest path:
git commit --amend -m "fix: corrected message"
If you've already pushed, force-with-lease:
git push --force-with-lease
For older commits (not the most recent), you need interactive rebase:
git rebase -i HEAD~3
# Mark the commit's line as 'reword'
Never amend or rebase commits other people have pulled. The "golden rule": rewrite only commits that are still local.