我正在尝试设置 git 来对我的所有提交进行签名。GPG 本身对我来说运行良好,git 也是如此。但是,当我在 git 中启用提交签名时,它根本不起作用并抛出此错误:
can't read "old_author": no such variable
can't read "old_author": no such variable
while executing
"commit_author_reset $old_author"
(procedure "commit_committree" line 66)
invoked from within
"commit_committree file9 c7498b3c51335cb1ae453588aa44d7fc442d5b9f .git/GITGUI_EDITMSG"
我在 git 中设置了以下配置值:
commit.gpgsign=true
gpg.program=gpg
user.signingkey=XXXXXXXX