1. cd ~/.gnupg/
2. touch gpg-agent.conf
3. vi gpg-agent.conf
4. press 'i' and copy/paste the below contents:
# Connects gpg-agent to the OSX keychain via the brew-installed
# pinentry program from GPGtools. This is the OSX 'magic sauce',
# allowing the gpg key's passphrase to be stored in the login
# keychain, enabling automatic key signing.
pinentry-program /usr/local/bin/pinentry-mac
5. gpg --list-keys
6. gpg --armor --export <KEY_ID>
7. git config --global user.signingkey <KEY_ID>
8. git config --global gpg.program /usr/local/bin/gpg
9. git config --global commit.gpgsign true
No comments:
Post a Comment