Skip to content

Instantly share code, notes, and snippets.

@lukyth
Created November 3, 2016 08:31
Show Gist options
  • Save lukyth/630f7f8f5b13190d45ce8ba6b7957cb8 to your computer and use it in GitHub Desktop.
Save lukyth/630f7f8f5b13190d45ce8ba6b7957cb8 to your computer and use it in GitHub Desktop.
gpg setup
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