gpg --full-generate-key
gpg --list-secret-keys --keyid-format=long
Caution
For signing Git commits on GitHub, you must use the exact same email address to generate the GPG keypair that your GitHub account uses. Otherwise, your commit signatures will be invalid, and you will need to create another keypair with the correct email address.