GPG and git on macOS

$ git config --global gpg.program /usr/local/MacGPG2/bin/gpg2
$ git config --global user.signingkey A6B167E1 
$ git config --global commit.gpgsign true

Документация / Статьи