From be8a1b84ab6d64ce0688cfc20c3d7a1a2befc2f5 Mon Sep 17 00:00:00 2001 From: Ayush Shukla Date: Thu, 25 Aug 2022 20:20:10 +0530 Subject: [PATCH] Fix docs for adding ssh key for commit signing The config command expects a path to the private/public key and needs to be prefixed with `key::` when using the public key directly ref: https://git-scm.com/docs/git-config#Documentation/git-config.txt-usersigningKey --- data/reusables/gpg/paste-ssh-public-key.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/reusables/gpg/paste-ssh-public-key.md b/data/reusables/gpg/paste-ssh-public-key.md index 1274a0acb5fa..e8c882a96f25 100644 --- a/data/reusables/gpg/paste-ssh-public-key.md +++ b/data/reusables/gpg/paste-ssh-public-key.md @@ -1,4 +1,4 @@ 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' - ``` \ No newline at end of file + $ git config --global user.signingkey 'key::ssh-ed25519 AAAAC3(...) user@example.com' + ```