Skip to content

Commit 71b7899

Browse files
authored
Additional steps
1 parent d122fe8 commit 71b7899

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

practices/guides/commit-signing.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
1. Avoid adding a comment (this *may* prevent git from auto-selecting a key - see Troubleshooting section below)
4646
1. Define a passphrase for the key
4747

48-
1. Export the PGP PUBLIC KEY (to your clipboard):
48+
1. Test the key is visible and export the PGP PUBLIC KEY (to your clipboard):
4949

5050
```bash
5151
gpg -k # This should list the new key
@@ -91,7 +91,7 @@
9191
1. Avoid adding a comment (this *may* prevent git from auto-selecting a key - see Troubleshooting section below)
9292
1. Define a passphrase for the key
9393

94-
1. Export the PGP PUBLIC KEY (to your clipboard):
94+
1. Test the key is visible and export the PGP PUBLIC KEY (to your clipboard):
9595

9696
```bash
9797
gpg -k # This should list the new key
@@ -125,7 +125,7 @@
125125
> **Ensure both `GnuPG` and `Kleopatra` are installed!**
126126
127127
1. Open Kleopatra -> `Import` -> Select the `<GitHub handle>.pgp` file created in the first step
128-
1. In `cmd`, set your local git config to use GPG signing:
128+
1. In `cmd`, test the key is visible and set your local git config to use GPG signing:
129129
130130
```bash
131131
gpg -k # This should list the new key
@@ -147,10 +147,15 @@
147147
148148
1. Close and reopen your Ubuntu terminal
149149
150-
1. Test the key is visible:
150+
1. Test the key is visible and set your local git config to use GPG signing:
151151
152152
```bash
153153
gpg -k # This should list the new key
154+
git config --global user.email ${my_email_address} # same one used during key generation
155+
git config --global user.name ${my_username}
156+
git config --global user.signingkey ${key_id}
157+
git config --global commit.gpgsign true
158+
git config --global tag.gpgsign true
154159
```
155160
156161
> When you commit, you'll now be prompted to enter the GPG key passphrase into a Pinentry window.

0 commit comments

Comments
 (0)