如何禁用git gpg签名 [英] How to disable git gpg signing

查看:155
本文介绍了如何禁用git gpg签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆