Last active
January 10, 2023 18:08
-
-
Save george124816/a7b9138c49f5bab8800c3921547b4680 to your computer and use it in GitHub Desktop.
Generate GPG key
This file contains hidden or 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
# interactive command | |
gpg2 --full-generate-key | |
# get keyID | |
gpg2 --list-secret-keys --keyid-format=long | |
att .gitconfig with KEYID | |
`git config --global user.signingkey 3AA5C34371567BD2` | |
enable on gitconfig too | |
# local | |
git config commit.gpgsign true | |
# global | |
git config --global commit.gpgsign true | |
make a commit and verify with | |
git log --show-signature | |
gpg --armor --export KEYID | |
add output to GPG github |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment