Skip to content

Fix grammatical inaccuracies #6504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions contributing/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,25 +179,25 @@ For instance, to commit your work from a debugging session:

Just make sure that your commits in a feature branch are all related.

### Signing GPG Old Commits
### GPG-Signing Old Commits

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.
Any developer can forget GPG-signing their commits with the option `-S`, like `git commit -S -m 'Signed GPG'`. In such a case, all you need to do is the following:

Latests commit :
Latest commit only:
```console
> git switch your-branch
> git commit --amend --no-edit -n -S
> git commit --amend --no-edit --no-verify -S
> git push --force-with-lease origin your-branch
```

All commit (will be change date commit to today) :
All commits:
```console
> git switch your-branch
> git rebase -i --root --exec 'git commit --amend --no-edit -n -S'
> git rebase -i --root --exec 'git commit --amend --no-edit --no-verify -S'
> git push --force-with-lease origin your-branch
```

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.
As a faster alternative, you can still securely sign commits without the `-S` option in `git commit` by setting `git config --global commit.gpgsign true` and `git config --global user.signingkey 3AC5C34371567BD2` to all local repositories. Without the `--global` option, the change is applied to one local repository only.

> **Note**
> `3AC5C34371567BD2` is your GPG Key ID
Expand Down