Git error - gpg failed to sign data

前端 未结 26 1485
遇见更好的自我
遇见更好的自我 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条回答
  •  Happy的楠姐
    2020-12-07 07:29

    What solved it for me was making sure the key's name matched my git user name. I assume the emails have to match too. This might have to do with me using GPG KeyChain on my Mac. Not sure.

    I thought I was naming the key when I filled this out, but I guess it was asking for my name (git user name).

提交回复
热议问题