Signed Git commits

Find your GPG key:

1
2
gpg --list-secret-keys
# Find it here: sec 4096R/KEY-ID

Globally configure usage of that key and signing of commits:

1
2
git config --global user.signingkey KEY-ID
git config --global commit.gpgsign true

Configure GPG for signing within the IDE in .gnupg/pgp.conf:

1
2
no-tty
use-agent

After that you may have to kill and re-start gpg-agent.