how to add gpg key to GitHub
Generate: A GPG key, use your real name and github email.
gpg --full-generate-key
Return: A list of all stored keys and their IDs.
The ID is called sec and will be a hex string that follows rsa4096/
or your selected key type.
gpg --list-secret-keys --keyid-format=long
Git won't start signing commit's till we tell it to.
git config --global commit.gpgsign true
Git needs to know what program will handle signing.
On windows this might be a path to the exe
git config --global gpg.program gpg
Git will need to know which key to use.
Use your ID instead.
git config --global user.signingkey 3AA5C34371567BD2
Lastly, we will need to add the public key to GitHub.
This command will export the public key.
Copy it and add it to GitHub in settings.
Use your ID!
gpg --armor --export 3AA5C34371567BD2