GnuPG and Git
To get GnuPG
working on MacOS:
$ brew install gpg2 pinentry-mac
GnuPG fatal
$ git commit -S -m 'Test'
error: gpg failed to sign the data
fatal: failed to write commit object
At the end of ~/.zshrc
add:
...
export GPG_TTY=$(tty)
Git config ~/.gitconfig
# This is Git's per-user configuration file.
[user]
name = Cees van de Griend
email = cees.van.de.griend@protonmail.com
signingkey = 5C7C70F2263A7C7FD1C8663D11E965F14AB03635
[gpg]
program = /usr/local/bin/gpg
[commit]
gpgsign = true