MoonLab - TIL

This is where i store my today-i-learned

You may also wannna visit my blog

Home

git commit sign失败 windows

gpg --list-secret-keys --keyid-format LONG
gpg: skipped "name <[email protected]>": secret key not available
gpg: signing failed: secret key not available
error: gpg failed to sign the data
fatal: failed to write commit object

解决方法:

git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"