如何禁用git gpg签名 [英] How to disable git gpg signing
问题描述
我正在使用git gpg签名.我要禁用它.我已经设置了 .gitconfig
[用户]名称= NAME电子邮件= EMAIL签名密钥=密钥...[犯罪]gpgsign =假
默认情况下,我的提交仍在签名.
PS:我还从Sourcetree Repository/Repository Settings/Security
选项卡中禁用了它.Sourcetree和终端都强制使用gpg.
您可以通过运行 git config commit.gpgsign false
来禁用此设置.
将此设置放入.gitconfig即可满足您的需要,而无需使用[user]配置:
[commit]gpgsign =假
I'm using git gpg signing. I want to disable it. I've set .gitconfig
[user]
name = NAME
email = EMAIL
signingkey = KEY
...
[commit]
gpgsign = false
My commits are still signing by default.
PS: I also disabled from Sourcetree Repository/ Repository Settings/Security
tab. Both Sourcetree and terminal forces to use gpg.
You can disable this by running git config commit.gpgsign false
This sets the configuration locally instead of globally.
Putting this setting in .gitconfig worked for me with what you had, without the [user] configuration:
[commit]
gpgsign = false
这篇关于如何禁用git gpg签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!