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

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

    On OS X, using gnupg2 via brew I just had to kill the gpg agent, happens sometimes:

    pkill -9 gpg-agent
    

    And set the env variable if needed:

    export GPG_TTY=$(tty)
    

    See Common GPG problems also and this answer here too.

提交回复
热议问题