Correct spelling error on commit message?

I committed but had a really bad spelling error.  I did not see any way to correct it at the remote (here) so I “touched” the module  and did another commit after correcting the spelling.  Is there a way to do this without going through another commit?

Thanks for looking!

You can use

git commit --amend

to modify the latest commit. If you had already pushed the ‘bad’ commit, you would then need to force-push it, which may or may not be what you want.

2 Likes