Git Hub Desktop on Mac, error: cannot run gpg: No such file or directory

前端 未结 2 676
孤街浪徒
孤街浪徒 2020-12-13 09:03

Trying to commit my changes by using GitHub Desktop and getting this:

error: cannot run gpg: No such file or directory

error: could not ru

2条回答
  •  情书的邮戳
    2020-12-13 09:37

    It has something to do with commit signing (https://help.github.com/en/articles/signing-commits).

    In case you use Github Desktop (which doesn't support commit signing as highlighted right at the beginning of the article linked above) or if you don't need commit signing (or don't even know what it is), one thing you can do is to disable gpg commit signing by running a command like git config --global commit.gpgsign false or edit your .git/config file manually:

    [commit]
      # https://help.github.com/articles/signing-commits-using-gpg/
      gpgsign = false
    

    Hope it helps someone.

提交回复
热议问题