Git error - gpg failed to sign data

前端 未结 26 1528
遇见更好的自我
遇见更好的自我 2020-12-07 07:19

I just started using git and I install git and gpg via homebrew. For some reason, I get this error when i do git commit I looked at so many other stackoverflow

26条回答
  •  孤城傲影
    2020-12-07 07:46

    Same error can also be caused when you have expired key in your git config.

    Please check the content of cat .git/config and look for signingkey value and check if it is expired. If yes update it with the new one.

提交回复
热议问题