Skip to content

Instantly share code, notes, and snippets.

@george124816
Last active January 10, 2023 18:08
Show Gist options
  • Save george124816/a7b9138c49f5bab8800c3921547b4680 to your computer and use it in GitHub Desktop.
Save george124816/a7b9138c49f5bab8800c3921547b4680 to your computer and use it in GitHub Desktop.
Generate GPG key
# 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