-
Run
git log
to find the commit hash of the commit you want to sign off. -
Use the git rebase -i command to interactively rebase the commit. Replace COMMIT_HASH with the commit hash you identified:
git rebase -i COMMIT_HASH^
This will open an editor with a list of commits, starting from the one you specified.
-
In the editor, change the keyword
pick
toedit
for the commit you want to sign off, save the changes, and close the editor.