Last active
May 7, 2017 08:38
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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