I was exploring the git config options using tab completion in bash, and without really thinking, I did this:
git config
git config --global user.signingke
Command
git config --global section.key value
does nothing more than editing file ~/.gitconfig with content like this:
~/.gitconfig
[section] key = value
So, you can simply edit this file and fix it.
Also, you can use command to remove offending setting:
git config --global --unset section.key