Skip to content

Instantly share code, notes, and snippets.

@thephw
Last active October 2, 2017 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thephw/0853d43f1cf63cedf6893ee97b979b27 to your computer and use it in GitHub Desktop.
Save thephw/0853d43f1cf63cedf6893ee97b979b27 to your computer and use it in GitHub Desktop.
$ brew update
$ brew boxen-install gnupg
$ gpg --gen-key # Use the same email address as github, local gitconfig, and SSH key
$ gpg --list-secret-keys --keyid-format LONG # Take everything after the / in pub to use in the following command
$ git config --global user.signingkey <YOUR KEY HASH HERE i.e. 0A123456>
$ git config --global commit.gpgsign true
$ gpg --armor --export <YOUR_EMAIL_ADDRESS_HERE> | pbcopy
$ open https://github.com/settings/keys # Paste the key into GPG keys here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment