Skip to content

Commit fb23aed

Browse files
authored
docs: update signing in latests & all commit
1 parent dd0fe24 commit fb23aed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contributing/workflow.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,12 +183,20 @@ Just make sure that your commits in a feature branch are all related.
183183

184184
Almost developer forgot signing GPG with params `-S` in commiting like `git commit -S -m "Signed GPG"`, you can signing old commit to keep secure.
185185

186+
Latests commit :
186187
```console
187188
> git switch your-branch
188189
> git commit --amend --no-edit -n -S
189190
> git push --force-with-lease origin your-branch
190191
```
191192

193+
All commit (will be change date commit to today) :
194+
```console
195+
> git switch your-branch
196+
> git rebase -i --root --exec 'git commit --amend --no-edit -n -S'
197+
> git push --force-with-lease origin your-branch
198+
```
199+
192200
But developer can secure commit without `-S` in `git commit`, you can set `git config --global commit.gpgsign true` and `git config --global user.signingkey 3AC5C34371567BD2` to all local repostory local or without `--global` to one local repostory.
193201

194202
> **Note**

0 commit comments

Comments
 (0)