gpg failed to sign the data fatal: failed to write commit object [Git 2.10.0]

前端 未结 30 2073
难免孤独
难免孤独 2020-11-27 23:55

I followed few articles over the pretty attributes on Git 2.10 release note. Going through which upgraded the git to 2.10.0 and made changes to global .gitconfig

30条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-28 00:45

    I must have accidentally updated gpg somehow because I got this after trying to test if gpg works:

    gpg: WARNING: server 'gpg-agent' is older than us (2.1.21 < 2.2.10)
    gpg: Note: Outdated servers may lack important security fixes.
    gpg: Note: Use the command "gpgconf --kill all" to restart them.
    

    Running gpgconf --kill all fixed it for me.

    Hope this helps someone.

提交回复
热议问题