Generate a GPG Key:
gpg --generate-key
List Key:
gpg --list-keys
Display in full:
gpg --armor --export <pubkey>
Open Github->Settings->GPG Keys->Copy and Paste
GIT Config
nano ~/.gitconfig
In the User
section,
[user]
signingkey = <signing-key>