THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Install a program to prompt you for your gpg key passphrase (example using homebrew):
brew install pinentry-mac
- Tell git to use this program for signing:
git config --global gpg.program "$(which pinentry-macgpg)"
- Tell git which key to sign with:
git config --global user.signingKey <gpg_key_id>
- Tell gpg to use this program to prompt for passphrase:
echo "pinentry-program $(which pinentry-mac)" > ~/.gnupg/gpg-agent.conf
- Reload gpg-agent:
gpgconf --kill gpg-agent
...