- Generate SSH key with passphrase (ssh-keygen)
- Get keychain to remember passphrase
ssh-add --apple-use-keychain --apple-load-keychain ~/.ssh/id_ed25519 - Tell git to use SSH for signing:
git config --global gpg.format ssh - Tell git about the key
git config --global user.signingkey ~/.ssh/id_ed25519.pub - Auto sign commits
git config --global commit.gpgsign true
Posts tagged: #Gpg
There are probably related tags so check out all tags.