Skip to main content

Signer des commits en masse

If you want to sign all the existing commits on the branch without do any changes to them:

git rebase --exec 'git commit --amend --no-edit -n -S' -i

Here is the first commit before the commits you want to sign. E.g., you can use HEAD~3 to sign the last 3 commits.

source : https://stackoverflow.com/a/67463502/11834812