GPG gives a lot of shit on macos for some reason.
It's best to just add the same SSH authentication key you have on github as a "Signing Key"
$ git config [--global] gpg.format ssh
$ git config [--global] user.signingkey ~/.ssh/id_rsa.pub
$ git config [--global] commit.gpgsign true
you can also do this manually on the .git/config
of your project
[user]
name = gubatron
email = [email protected]
signingkey = /Users/gubatron/.ssh/id_rsa.pub
[github]
user = gubatron
[gpg]
format = ssh
[commit]
gpgsign = true
CC @generic-pers0n
Check this out on how to sign your commits using your favorite SSH key, which you can configure in your Github settings.
Would be lovely to have all your commits signed