How to disable git gpg signing

Thellimist picture Thellimist · Sep 1, 2016 · Viewed 26.1k times · Source

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.

Answer

Edward Loveall picture Edward Loveall · Mar 20, 2017

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