gpg: skipped "N": secret key not available gpg: skipped "N": secret key not available git git

gpg: skipped "N": secret key not available


1. Demonstration

Verified key


2. Solution

I must be manually set path to gpg2 in git settings.

SashaChernykh@DESKTOP-EEOT0TN D:\SashaGitHub$ where gpg2C:\Program Files (x86)\GNU\GnuPG\pub\gpg2.exeSashaChernykh@DESKTOP-EEOT0TN D:\SashaGitHub$ git config --global gpg.program "C:/Program Files (x86)/GNU/GnuPG/gpg2.exe"

Now I can make successful commit:

SashaChernykh@DESKTOP-EEOT0TN D:\SashaGitHub$ git commit -m "[Test] gpg4win"You need a passphrase to unlock the secret key foruser: "Sasha Chernykh (gpg key for Sasha Chernykh) <SashaChernykhEmpressOfTheUniverse@kristinita.ru>"2048-bit RSA key, ID DBA8E7A2, created 2017-02-08[master 1321c09] [Test] gpg4win 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 desktop.iniSashaChernykh@DESKTOP-EEOT0TN D:\SashaGitHub$ git pushCounting objects: 4, done.Delta compression using up to 4 threads.Compressing objects: 100% (4/4), done.Writing objects: 100% (4/4), 817 bytes | 0 bytes/s, done.Total 4 (delta 0), reused 0 (delta 0)To https://github.com/Kristinita/SashaGitHub.git   a2aec74..1321c09  master -> master