Signing With GPG
Although GPG is not yet fully integrated into Gitfox, you can still
let git
sign your commits automatically on commit.
To do this configure your system as follows:
Install either the Retail or SetApp versions of Gitfox
The AppStore version won’t work for signing because Gitfox cannot access tools that are located outside of the sandbox container.
Install GPG and pinentry-mac using Homebrew
brew install gnupg pinentry-mac
Configure GPG to use
pinentry-mac
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
List your GPG keys
gpg --list-keys
4.1. If you don’t have a key, generate one
gpg --gen-key
Configure
git
to automatically sign commits using GPGgit config --global commit.gpgsign true git config --global user.signingkey <YOURPUBLICKEYHASH>
Restart the GPG agent
gpgconf --kill gpg-agent
Your commits should now be signed automatically on commit.
pinentry-mac
will prompt you for your GPG key passphrase on your first commit.
You can tell pinentry-mac
to store it in your keychain, so you won’t be prompted again.