我已经设置了一个gpg密钥:
gpg: WARNING: unsafe ownership on homedir '/home/anonymous/.gnupg'
/home/anonymous/.gnupg/pubring.kbx
---------------------------------
pub rsa4096/BA4FF7362A7BD6EF 2018-11-24 [SC]
40CF42C51EFF9574102F3060BA4FF7362A7BD6EF
uid [ultimate] **** (first key) <****@example.com>
sub rsa4096/05ED809ACFF9175E 2018-11-24 [E]
我已经像这样配置了git global
git config --global user.signingkey BA4FF7362A7BD6EF
但是当我尝试提交时:
git commit -a -S -m 'git commit'
我收到以下错误:
error: gpg failed to sign the data
fatal: failed to write commit object