2016-04-29 11 views
18

Cercando di commettere i miei cambiamenti utilizzando GitHub Desktop e ottenere questo:Git Hub Desktop su Mac, errore: non è possibile eseguire gpg: No such file or directory

enter image description here

error: cannot run gpg: No such file or directory

error: could not run gpg.

fatal: failed to write commit object (128)

In primo luogo, che non ha funzionato per anche terminale e creo gpg-key e collegato al mio account GitHub Ora funziona bene in Terminal ma la versione desktop non funziona ancora.

In Oficial doccumentation for GitHub Desktop i found some notation:

Note: GitHub Desktop does not support GPG signing.

+0

Cosa mostra 'git status' quando viene visualizzato questo errore proveniente da GitHub Desktop? –

+0

Mostrando tutte le modifiche, ho usato Win OS prima di provare a impostare mac e ottenere questo problema ... –

+0

Hai configurato GitHub Desktop sul tuo Mac? –

risposta

31

Risolto.

Così come GitHub Desktop si lamentava di non essere in grado di trovare gpg (avevo installato tramite homebrew), ho pensato che ci dovrebbe essere un modo per dire git il percorso esatto di gpg, si rivela c'è:

gpg.program Use this custom program instead of "gpg" found on $PATH when making or verifying a PGP signature. The program must support the same command-line interface as GPG, namely, to verify a detached signature, "gpg --verify $file - https://git-scm.com/docs/git-config

Quindi eseguendo il seguente risolto il problema:

git config --global gpg.program $(which gpg) 

GitHub tornato a me e ha detto che alcuni utenti hanno bisogno di usare:

echo "no-tty" >> ~/.gnupg/gpg.conf 
+1

Tracciato anche su https://github.com/isaacs/github/issues/675 – balupton

Problemi correlati