You can edit individual commits in a series by using interactive rebase (git rebase -i
). However, note that if you have already published the commit series, rebasing can have significant consequences, since it rewrites history.
As long as you've kept the patch series private so far, however, it shouldn't be a problem to rebase it. You can use the "edit" action, which will cause the interactive rebase to stop before a given commit to allow you to modify it (after which you can continue with git rebase --continue
).
For more details, see git help rebase
.