diff --git a/content/security/ssh-key.md b/content/security/ssh-key.md index 6536ee6..20dd28c 100644 --- a/content/security/ssh-key.md +++ b/content/security/ssh-key.md @@ -175,11 +175,25 @@ To update your version of Git,see the [Git](https://git-scm.com/downloads) websi {% endadmonition %} -1. Open your terminal. -2. Type `git config --global gpg.format ssh`. -3. Type `git config --global user.signingKey `, substituting `` with the - path to the public key you'd like to use, for example _~/.ssh/id_ed25519.pub_. -4. Type `git config --global commit.gpgSign true`. +In your terminal, run the following commands: + +1. Make git use SSH to sign commits and tags: + +```shell +git config --global gpg.format ssh +``` + +2. Set the SSH signing key to your public key: + +```shell +git config --global user.signingKey '~/.ssh/' +``` + +3. Sign commits by default: + +```shell +git config --global commit.gpgSign true +``` ## Avoid re-typing the passphrase