You would need to set up the GPG key in Git (again): List the secret keys available in GPG $ rpm -addsign. It means that is not finding the key that was set. Simple fix was telling git which app to use for signing off commits: git config -global gpg.program C:\Program Files (x86)\GnuPG\bin\gpg.exe Another thing could be that the secret key was not set properly (In my case the message said gpg: signing failed: No secret key as it can be see in the image below). 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 I decided to import public key with -import. Both the above commands returned blank result(no error). • gpg -list-secret-keys • gpg -list-keys. I have used following commands to check if there is secret key or not. I have public key and a passphrase with me.
0 Comments
Leave a Reply. |