Skip to content

Commit 475b788

Browse files
authored
Merge pull request #6504 from codeigniter4/fix-workflow-grammar
Fix grammatical inaccuracies
2 parents 8d6584d + 231d9a6 commit 475b788

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

contributing/workflow.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,25 +179,25 @@ For instance, to commit your work from a debugging session:
179179

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

182-
### Signing GPG Old Commits
182+
### GPG-Signing Old Commits
183183

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.
184+
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:
185185

186-
Latests commit :
186+
Latest commit only:
187187
```console
188188
> git switch your-branch
189-
> git commit --amend --no-edit -n -S
189+
> git commit --amend --no-edit --no-verify -S
190190
> git push --force-with-lease origin your-branch
191191
```
192192

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

200-
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.
200+
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.
201201

202202
> **Note**
203203
> `3AC5C34371567BD2` is your GPG Key ID

0 commit comments

Comments
 (0)