Setting up gpg on mac os
Install gpg2 and pinentry-mac:
brew install gnupg
brew install pinentry-mac
Generating a GPG key
#Generating key
gpg --full-generate-key
#Checking my key
gpg --list-secret-keys --keyid-format LONG
#Copying key
gpg --armor --export 3AA5C34371567BD2
# Setting key for git
git config --global user.signingkey 3AA5C34371567BD2
UI for gpg password
pinentry-program /usr/local/bin/pinentry-mac
nano .gnupg/gpg-agent.conf
# insert into gpg-agent
pinentry-program /usr/local/bin/pinentry-mac
# restart agent
gpgconf --kill gpg-agent
https://medium.com/@jma/setup-gpg-for-git-on-macos-4ad69e8d3733
Edit this page on GitHub