git commit signing failed: secret key not available

前端 未结 9 1610
臣服心动
臣服心动 2020-12-07 12:41

I am getting this error when trying to commit using Git.

gpg: skipped \"name \": secret key not available
gpg: signing failed: secret ke         


        
9条回答
  •  情书的邮戳
    2020-12-07 13:24

    Using "C:\Program Files\Git\usr\bin\gpg.exe" was the solution for me.
    Had to uninstall kleopatra. With it, it was not working.

    So, summing up;

    • No need for kleopatra, use GIT default instead.

    • git config --global user.signingkey Y0URK3Y
      git config --global commit.gpgsign true
      git config --global gpg.program "C:\Program Files\Git\usr\bin\gpg.exe"
      

提交回复
热议问题