From e88f9fa9ce2a493625a69732c7e82f2edd2ca8f6 Mon Sep 17 00:00:00 2001 From: mitche50 Date: Thu, 25 Aug 2022 14:40:23 -0400 Subject: [PATCH 1/3] chore: update guide to include path to public key for ssh signing --- data/reusables/gpg/paste-ssh-public-key.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/reusables/gpg/paste-ssh-public-key.md b/data/reusables/gpg/paste-ssh-public-key.md index 1274a0acb5..d1aaa6acef 100644 --- a/data/reusables/gpg/paste-ssh-public-key.md +++ b/data/reusables/gpg/paste-ssh-public-key.md @@ -1,4 +1,9 @@ 1. To set your SSH signing key in Git, paste the text below, substituting the contents of your clipboard for the key you'd like to use. Since the key contains spaces, you must wrap it in quotes: ```bash $ git config --global user.signingkey 'ssh-ed25519 AAAAC3(...) user@example.com' + ``` + +Alternatively, you can add the direct path to your public key if your system does not properly handle adding the content of the key directly. + ```bash + $ git config --global user.signingkey=/path/to/.ssh/pubkey_filename.pub ``` \ No newline at end of file From 11ad33a763da99ddaae79bcf2ca200681852569f Mon Sep 17 00:00:00 2001 From: Matt Pollard Date: Tue, 8 Nov 2022 09:30:18 +0100 Subject: [PATCH 2/3] Consolidate instructions --- data/reusables/gpg/paste-ssh-public-key.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/data/reusables/gpg/paste-ssh-public-key.md b/data/reusables/gpg/paste-ssh-public-key.md index 84f94499e6..b22811631f 100644 --- a/data/reusables/gpg/paste-ssh-public-key.md +++ b/data/reusables/gpg/paste-ssh-public-key.md @@ -1,9 +1,3 @@ -1. To set your SSH signing key in Git, paste the text below, substituting the contents of your clipboard for the key you'd like to use. Since the key contains spaces, you must wrap it in quotes: +1. To set your SSH signing key in Git, paste the text below, substituting **/PATH/TO/KEY.PUB** with the path to the pubic key you'd like to use. ```bash - $ git config --global user.signingkey 'key::ssh-ed25519 AAAAC3(...) user@example.com' - ``` - -Alternatively, you can add the direct path to your public key if your system does not properly handle adding the content of the key directly. - ```bash - $ git config --global user.signingkey=/path/to/.ssh/pubkey_filename.pub - ``` \ No newline at end of file + $ git config --global user.signingkey=/PATH/TO/.SSH/KEY.PUB \ No newline at end of file From 4cd15d49311c239dfef8c1f1cc29729dc141f74c Mon Sep 17 00:00:00 2001 From: Matt Pollard Date: Tue, 8 Nov 2022 09:59:18 +0100 Subject: [PATCH 3/3] Incorporate a quite important correction Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com> --- data/reusables/gpg/paste-ssh-public-key.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/reusables/gpg/paste-ssh-public-key.md b/data/reusables/gpg/paste-ssh-public-key.md index b22811631f..7611251ec0 100644 --- a/data/reusables/gpg/paste-ssh-public-key.md +++ b/data/reusables/gpg/paste-ssh-public-key.md @@ -1,3 +1,3 @@ -1. To set your SSH signing key in Git, paste the text below, substituting **/PATH/TO/KEY.PUB** with the path to the pubic key you'd like to use. +1. To set your SSH signing key in Git, paste the text below, substituting **/PATH/TO/KEY.PUB** with the path to the public key you'd like to use. ```bash $ git config --global user.signingkey=/PATH/TO/.SSH/KEY.PUB \ No newline at end of file