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

前端 未结 30 2000
难免孤独
难免孤独 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:46

    I am on Ubuntu 18.04 and got the same error, was worried for weeks too. Finally realized that gpg2 is not pointing towards anything. So simply run

    git config --global gpg.program gpg
    

    And tada, it works like charm.

    Your commits will now have verified tag with them.

提交回复
热议问题