Is that a typo in your commit message? Don’t make a new commit. Run git commit --amend -m with your new message. It rewrites the last commit in place.
Forgot to add a file? Stage it, then amend with --no-edit to keep the message.
Just don’t amend commits you already pushed.
Want the full undo toolkit (reset, revert, amend, and reflog)? Watch the full video: Undo anything in Git
Follow for more like this!