I\'m signing my commits in Git using GnuPG. I\'d prefer it greatly if Git would use /usr/bin/gpg2 rather than /usr/bin/gpg for signing commits for some
/usr/bin/gpg2
/usr/bin/gpg
You could try and set the right config:
git config gpg.program gpg2
From git config man page:
Use this custom program instead of "gpg" found on $PATH when making or verifying a PGP signature.
gpg
$PATH