Change the binary that Git uses to invoke GnuPG for signing commits?

后端 未结 1 1583
借酒劲吻你
借酒劲吻你 2021-02-15 16:12

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

1条回答
  •  日久生厌
    2021-02-15 16:18

    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.

    0 讨论(0)
提交回复
热议问题