- Download GPGTools from https://gpgtools.org to install the
gpg command line utility, if you don't have it already.
- Open the application
GPG Keychain and setup a new private key for the e-mail address you use for commits to Git.
- Generate a password with 1Password and use it as passphrase for your GPG key.
- Export the newly generated keys from GPG Keychain, including the secret key, and store it in 1Password as attachment, along with your passphrase.
- Configure git to use your key:
git config --global user.signingkey $INSERT_KEY_HERE
- Enable GPG signing in git using
git config commit.gpgsign true.
- Export your public key using these instructions, starting from
gpg --list-keys and then using gpg --armor --export $INSERT_KEY_HERE.
- Login to github.com and let them know what your public GPG key is, in Settings > SSH and GPG keys > GPG keys.
Related reading: Github: Generating a GPG key
gpgcommand line utility, if you don't have it already.GPG Keychainand setup a new private key for the e-mail address you use for commits to Git.git config --global user.signingkey $INSERT_KEY_HEREgit config commit.gpgsign true.gpg --list-keysand then usinggpg --armor --export $INSERT_KEY_HERE.Related reading: Github: Generating a GPG key