You could also do git config --global commit.gpgsign 'true' to make this persistent. You'll need to set user.signingkey too, though.
git config --global commit.gpgsign 'true'
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.