GPG firmar git commits en Windows - Solución

Yo ví los siguientes errores mientras trataba de firmar un mensaje de commit en Git Bash:

gpg: detected reader `Yubico Yubikey 4 OTP+U2F+CCID 0'
gpg: pcsc_transmit failed: invalid parameter (0x80100004)
gpg: apdu_send_simple(0) failed: invalid value
Please insert the card and hit return or enter 'c' to cancel:

Yo lo arreglé agregando el directorio donde GnuPG está ubicado al inicio del PATH en el archivo bash:

$ export PATH=/c/Program\ Files\ \(x86\)/GnuPG/bin/:$PATH
Previous Next