git commit signing failed: secret key not available

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

    You need to configure the secret key before using it.

    git config user.signingkey 35F5FFB2
    

    Or declare it globally if you want to use the same key for every repository.

    git config --global user.signingkey 35F5FFB2
    

    Source: Git Tools - Signing Your Work

提交回复
热议问题