user9578094
user9578094

Reputation:

How to remove GPG key from GitHub

I have a problem with my GPG key. I removed my GPG key from my PC and my account and now when I want to commit changes from my computer it says:

gpg: skipped "name ": secret key not available gpg: signing failed: secret key not available error: gpg failed to sign the data fatal: failed to write commit object

So how can I unset it from Git?

Upvotes: 14

Views: 14806

Answers (1)

Gabriel Caruso
Gabriel Caruso

Reputation: 869

To remote a GPG key from GitHub, go to https://github.com/settings/keys and under GPG keys, select the one and remove it.

To remove it from Git, I believe @Mincong Huang's suggestion might work:

git config --global --unset user.signingkey

Then you can globally disable the GPG sign in key for commits

git config --global commit.gpgsign false

Upvotes: 15

Related Questions