Using gpg to sign commits

Instructions for signing commits via git and Github requires one to first setup a gpg key. To utilize the ed25519 algorithm, create your key like so.

gpg --quick-generate-key "FirstName LastName <username@somerandomemaildomain.com>" future-default default none

If one would like to add a comment, then just include in parentheses.

gpg --quick-generate-key "FirstName LastName (some comment) <username@somerandomemaildomain.com>" future-default default none

This is inspired by the shell script gpgit.

Other commands to know (recall).

To list the key ==>

gpg --list-secret-keys --keyid-format LONG

To get a version for copying to Github ==>

gpg --armor --export