- Install git and gnupg. You can get the "Simple installer for the current GnuPG" instead of the full featured version.
- Create a new identity. The email here should match your GitHub account's email! The "Real Name" you choose here will be your "user id" in step 5. If you decide to set a passphrase, it will need to be entered for every commit.
gpg --gen-key
- Add the public key of your newly created gpg identity to your github keys so that github can verify your locally signed commits.
- Find your newly created identity.
gpg --list-secret-keys --keyid-format=long