Tested
Autosign Git commits
You need to do 2 things:
- tell Git what should be your default GPG signing key:
git config --global user.signingkey <key id> - enable autosign for every commit (can be done per-repo without the
--globalflag):git config --global commit.gpgsign true
Source: StackOverflow