Skip to content

Instantly share code, notes, and snippets.

@didierfranc
Last active March 18, 2019 11:14
Show Gist options
  • Save didierfranc/33e75db176eea610bec8a15c9d551e4f to your computer and use it in GitHub Desktop.
Save didierfranc/33e75db176eea610bec8a15c9d551e4f to your computer and use it in GitHub Desktop.
GPG setup script
# Mac only
brew install gpg
gpg --passphrase '' --pinentry loopback --quick-generate-key "Didier Franc <[email protected]>"
gpg --export --armor | pbcopy
git config --global user.signingkey `gpg --list-secret-keys --keyid-format LONG | grep sec | cut -c 15-30`
git config --global commit.gpgsign true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment