Last active
July 2, 2020 12:02
-
-
Save alexengrig/03b5f2ef56af6db0f6b6b1ad53489d3f to your computer and use it in GitHub Desktop.
Verify commits to Git
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
# 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