Skip to content

Commit d3741ff

Browse files
authored
Update retrospective-commit-signing.md
1 parent 1fa4165 commit d3741ff

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

practices/guides/retrospective-commit-signing.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ If you are happy that the most recent N commits can *all* be signed in one go, t
8383
If N == 10:
8484

8585
```bash
86-
git rebase --exec "git commit -S --amend --no-edit" HEAD~10
86+
git rebase --exec "git commit -S --amend --no-edit --allow-empty" HEAD~10
8787
git push -f
8888
```
8989

9090
The first command automatically cycles through all 10 commits, signing each one. The second force-pushes the newly signed commits.
91+
92+
Note: --allow-empty is only needed if any of the commits you want to sign are empty.

0 commit comments

Comments
 (0)