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!

git config --global commit.gpgsign true // This makes git sign ALL your commits
git config --global user.signingkey <KEYHERE> // This makes git use your public key

Forgot your public key?

gpg --list-keys

You’re welcome.