brew install gnupg gnupg2 pinentry-mac
git config --global user.signingkey <key>
git config --global commit.gpgsign true
git config --global gpg.program gpg
nano ~/.gnupg/gpg.conf
no-tty
nano ~/.gnupg/gpg-agent.conf
pinentry-program /usr/local/bin/pinentry-mac
gpgconf --kill gpg-agent
might be needed to load new settings