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

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

    If the email assoicated to your GPG key's uid is different to the email you are using in git, you'll need to add another user id to your key OR use a key which email matches exactly.

    You can add another UID by using:

    $ gpg --edit-key

    See for mo https://superuser.com/questions/293184/one-gnupg-pgp-key-pair-two-emails

提交回复
热议问题