'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?
Solution 1:[1]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
