You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: contributing/workflow.md
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -179,6 +179,21 @@ For instance, to commit your work from a debugging session:
179
179
180
180
Just make sure that your commits in a feature branch are all related.
181
181
182
+
### Signing GPG Old Commits
183
+
184
+
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.
185
+
186
+
```console
187
+
> git switch your-branch
188
+
> git commit --amend --no-edit -n -S
189
+
> git push --force-with-lease origin your-branch
190
+
```
191
+
192
+
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.
193
+
194
+
> **Note**
195
+
> `3AC5C34371567BD2` is your GPG Key ID
196
+
182
197
### Changing a Commit Message
183
198
184
199
See <https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message>.
0 commit comments