Needed programs:
Steps on making a PGP key:
- Install GPG on your machine
- Run the following command substituting the any values:
gpg --quick-generate-key "Name_Here <Email_Address>" rsa4096 cert,sign,auth,encr never
- In Git Bash, run
gpg -k
and make sure the key is there. - Run
gpg -a --export Name_Here
and copy the value - Goto the GitHub Keys settings and paste it as a new PGP key
- Get your PGP ID (that is the last 16 charactors of your key's fingerprint. If my fingerprint was
384983B33A4FE64410E065CECF72C4A1E58FCC7B
, the ID would beCF72 C4A1 E58F CC7B
from 384983B33A4FE64410E065CECF72C4A1E58FCC7B - Run the following commands:
git config --global user.signingkey <KEY_ID>
git config --global user.email <EMAIL>
git config --global commit.gpgsign true