git - gpg onto mac osx: error: gpg failed to sign the data

后端 未结 7 2235
半阙折子戏
半阙折子戏 2020-12-24 01:18

I installed GPG from brew.

brew install gpg

It is gnupg2-2.0.30_2.

When I commit, I do get a error message:

You nee         


        
7条回答
  •  星月不相逢
    2020-12-24 01:43

    I had the same error message and found that my key was expired. So it might be a good idea to check your key expiration with:

    gpg --list-keys

    If your key is expired as well you can adjust the expiration date with:

    gpg --edit-key

    and then:

    gpg> expire
    ...enter the new expiration date...
    gpg> save
    

提交回复
热议问题