Skip to content

Commit 4869d3a

Browse files
authored
Update sign-git-commits-with-ssh-keys.md
1 parent 4216ef9 commit 4869d3a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/content/thoughts/sign-git-commits-with-ssh-keys.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,18 @@ And you can verify that the signed commit was signed by an allowed signer with t
8787
git verify-commit <commit-hash>
8888
```
8989

90+
## Add your public key to Github
91+
92+
You now need to add your signing key to Github so that it will have it in its "known signers" file for verification.
93+
94+
Head over to User Profile > Settings > SSH and GPG keys. Click the "New SSH key" button. Give your new key a title, then under Key type select Signing Key. Then run:
95+
96+
```bash
97+
cat ~/.ssh/id_ed25519.pub | pbcopy
98+
```
99+
100+
This will copy your publish ssh key into your clipboard. Paste it into the Key section. Click Add SSH Key and you should be ready to go.
101+
90102
## Bonus
91103

92104
If you already have an unsigned commit that you want to sign, you can use:

0 commit comments

Comments
 (0)