Skip to content

Instantly share code, notes, and snippets.

@alexengrig
Last active July 2, 2020 12:02
Show Gist options
  • Save alexengrig/03b5f2ef56af6db0f6b6b1ad53489d3f to your computer and use it in GitHub Desktop.
Save alexengrig/03b5f2ef56af6db0f6b6b1ad53489d3f to your computer and use it in GitHub Desktop.
Verify commits to Git
# creat key
gpg --full-generate-key
# show key (sec block)
gpg --list-secret-keys --keyid-format LONG
# print key and copy/past to GitHub
gpg --armor --export <key>
# set key
git config --global user.signingkey <key>
# enable key
git config --global commit.gpgsign true
# set key-program
git config --global gpg.program gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment