Created
November 3, 2016 08:31
-
-
Save lukyth/630f7f8f5b13190d45ce8ba6b7957cb8 to your computer and use it in GitHub Desktop.
gpg setup
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 gnupg gnupg2 pinentry-mac | |
gpg2 --gen-key | |
# 1 > 4096 > 0 | |
# Name > Email > Comment (Machine Name?) | |
gpg2 --list-secret-keys --keyid-format LONG | |
# sec 12345/1234567890987654 2016-11-03 >> 1234567890987654 is <id> | |
git config --global user.signingkey <id> | |
gpg2 --armor --export <id> | |
# copy the output to Create new GPG Key in https://github.com/settings/keys | |
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf | |
git commit -S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment