Dec 2, 2022
You can do this with an "Interactive Rebase".
This will allow you to "re-commit" a number of previously commits. So, using this method you can decide to reword/squash/drop any previous commits.
But, beware that "Rewriting history" can impact other users.
This is probably a good candidate for a future article.