Git commit signing on Ubuntu
The error -
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
test
gpg: signing failed: No pinentry
gpg: [stdin]: clear-sign failed: No pinentry
I tried installing a bunch of pinentry packages, but turns out, it was because I had my pinentry program set to /usr/local/bin/pinentry-mac in my gpg-agent.conf. So all I really had to do was symlink my actual pinentry program to this.
$ sudo ln -s /usr/bin/pinentry /usr/local/bin/pinentry-mac