Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install a program to prompt you for your gpg key passphrase (example using homebrew): brew install pinentry-mac 
  2. Tell git to use this program for signing: git config --global gpg.program "$(which pinentry-macgpg)"
  3. Tell git which key to sign with: git config --global user.signingKey <gpg_key_id>
  4. Tell gpg to use this program to prompt for passphrase: echo "pinentry-program $(which pinentry-mac)" > ~/.gnupg/gpg-agent.conf 
  5. Reload gpg-agent: gpgconf --kill gpg-agent 

...