Skip to main content Link Search Menu Expand Document (external link)

Tested

Autosign Git commits

You need to do 2 things:

  1. tell Git what should be your default GPG signing key: git config --global user.signingkey <key id>
  2. enable autosign for every commit (can be done per-repo without the --global flag): git config --global commit.gpgsign true

Source: StackOverflow