git commit signing failed: secret key not available

前端 未结 9 1602
臣服心动
臣服心动 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:36

    What worked for me was adding

    git config --global gpg.program "C:/Program Files (x86)/GNU/GnuPG/gpg2.exe"
    

    If you want to find the full path of gpg2.exe:

    where gpg2.exe
    

提交回复
热议问题