Skip to content

Commit abeaf15

Browse files
authored
Just formatting
1 parent d0c38e0 commit abeaf15

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

practices/guides/commit-signing.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,19 +303,19 @@ A failure to sign a commit is usually because the name or email does not quite m
303303
1. Signing commits with an SSH key is not the default method, so you need to [configure Git](https://docs.github.com/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key#telling-git-about-your-ssh-key) accordingly:
304304

305305
1. Run the following command to instruct Git to use the SSH signing key format, instead of the default GPG:
306-
306+
307307
```shell
308308
git config --global gpg.format ssh
309309
```
310-
310+
311311
1. Next, specify the private key for Git to use:
312-
312+
313313
```shell
314314
git config --global user.signingkey ~/.ssh/github-signing-key
315315
```
316-
316+
317317
1. Lastly, instruct Git to sign all of your commits:
318-
318+
319319
```shell
320320
git config --global commit.gpgsign true
321321
```
@@ -328,6 +328,7 @@ A failure to sign a commit is usually because the name or email does not quite m
328328
```shell
329329
cat ~/.ssh/github-signing-key.pub
330330
```
331+
331332
1. `Add SSH key`
332333

333334
1. To ensure your configuration works as expected, make a commit to a branch locally and push it to GitHub. When you view the commit history of the branch on GitHub, [your latest commit](https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification#about-commit-signature-verification) should now display a `Verified` tag, which indicates successful signing with your GPG or SSH key.

0 commit comments

Comments
 (0)