Reputation:
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
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