Since GitHub puts a nice shiny “Verified” next to your commits if you sign them with GPG, you might be wondering how to get on this bandwagon. Not to worry! With this one simple trick, you’ll never have to remember to type git -S, ever again!

Run the following (substitute your key in the second command):

git config --global commit.gpgsign true
git config --global user.signingkey <KEYHERE>

Did you forget your GPG keys?

gpg --list-keys

Alternatively, check out my comprehensive GPG guide.