RC Logr 20200721 195846
Tuesday, 21 Jul, 2020
If you want to autosign git commits on Mac, there are a couple of tricks to it. I have not been able to get brew gpg to work consistently well, but installing from gpgtools.org seems to be able to be made to work. 🤖 This worked for me:
- Install GPGTools from https://gpgtools.org
- Create / import a key, then run
gpg --list-secret-keysto find the
- Make git settings, specifying the signing key as the fingerprint with no spaces:
- If you want to autocommit to GitHub, open https://github.com/settings/keys and add the same public gpg key there. This links signed commits you make locally, once you push to master on the remote.
~/.gnupg/gpg-agent.confand add this line:
I had the brew version installed, and this was set to call
/usr/local/bin/pinentry-mac, but the brew version is an older version. You can see that the
pinentry-mac binary is being called from within an app bundle.
~/.gnupg/gpg.confand add this line:
You can relogin with
exec $SHELL --login, and reload the agent with
gpgconf --kill gpg-agent.
It may work now.RC Logr 20200721 195846 - If you want to autosign git …