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

后端 未结 7 2232
半阙折子戏
半阙折子戏 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:44

    Your question assumes that you actually want to sign your commits. If you don't, the fix is very simple - switch off commit signing:

    git config --global commit.gpgsign false
    

    In my case I had inherited some default git config settings which included commit signing.

提交回复
热议问题