Skip to content

Instantly share code, notes, and snippets.

@aledalgrande
Last active May 7, 2017 08:38
Show Gist options
  • Save aledalgrande/5c666f38a5ad7f77ac9dd873300c099a to your computer and use it in GitHub Desktop.
Save aledalgrande/5c666f38a5ad7f77ac9dd873300c099a to your computer and use it in GitHub Desktop.
I'm tired of typing my GPG password for Git, so I save it in the keychain
brew install gpg2 pinentry-mac
brew link --overwrite gnupg2
git config --global gpg.program gpg2
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
echo "export GPG_TTY=$(tty)" >> ~/.bash_profile
# open new terminal, commit and save your pass in keychain, yay!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment