I am getting this error when trying to commit using Git.
gpg: skipped \"name \": secret key not available gpg: signing failed: secret ke
What worked for me was adding
git config --global gpg.program "C:/Program Files (x86)/GNU/GnuPG/gpg2.exe"
If you want to find the full path of gpg2.exe:
where gpg2.exe