我正在使用 GnuPG 在 Git 中签署我的提交。如果 Git 出于某些兼容性原因使用 /usr/bin/gpg2
而不是 /usr/bin/gpg
来签署提交,我会非常喜欢它。
是否有 Git 配置设置允许我设置在签名期间使用哪个 GnuPG 二进制文件?我还没找到。
最佳答案
您可以尝试设置正确的配置:
git config gpg.program gpg2
来自 git config
man page :
Use this custom program instead of "
gpg
" found on$PATH
when making or verifying a PGP signature.
关于git - 更改 Git 用于调用 GnuPG 签署提交的二进制文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38366490/