Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable git gpg signing

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.

like image 736
Thellimist Avatar asked Sep 01 '16 14:09

Thellimist


People also ask

How do I remove a GPG key from github?

Deleting your GPG Key You can delete your key via terminal with the command gpg --delete-secret-keys simply append your username or key ID.

Can you GPG sign old commits?

Is there a way to add a signature to an already recorded commit? For the record, you can tell git to always sign commits via configuration: git config commit. gpgsign true .

What is GPG key in git?

About GPG keys GPG is a command line tool used together with Git to encrypt and sign commits or tags to verify contributions in Bitbucket. In order to use GPG keys with Bitbucket, you'll need generate a GPG key locally, add it to your Bitbucket account, and also set it up for use with Git.


2 Answers

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 
like image 95
Edward Loveall Avatar answered Sep 18 '22 13:09

Edward Loveall


To temporarily disable GPG signing for the next commit:

git -c commit.gpgsign=false commit 
like image 21
friederbluemle Avatar answered Sep 20 '22 13:09

friederbluemle