Check for already existing GPG
gpg --list-secret-keys --keyid-format LONG
Generate a key(_If not exist in #1 _)
gpg --gen-key
Default Selections are RSA 4096. Enter for unlimited validity or, be paranoid. Enter Real Name, Email, Comment to set the hash.
Check the list to see if key exists now
gpg --list-secret-keys --keyid-format LONG
If exists, use the KeyID such as 3EC4B8420416E86B
like this, to get the GPG Key
gpg --armor --export 3EC4B8420416E86B
Paste the GPG key in your Github account settings
Tell Git about the GPG key you’re going to use
git config --global user.signingkey 3EC4B8420416E86B