2016-04-29 5 views
18

GitHubのデスクトップを使用して、これを取得することにより、自分の変更をコミットしようとすると:まず、そのために働いていないGitのハブデスクトップ、エラー:GPGを実行することはできません:そのようなファイルやディレクトリはありません

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)

ターミナルでもgpg-keyを作成してGitHubアカウントに接続しました これはターミナルでうまくいっていますが、デスクトップ版はまだ動作していません。

In Oficial doccumentation for GitHub Desktop i found some notation:

Note: GitHub Desktop does not support GPG signing.

+0

GitHub Desktopからこのエラーが発生したとき、 'git status'と表示されるのは何ですか? –

+0

すべての変更を表示、私はMacを設定しようとする前に勝利OSを使用し、このトラブルを取得... –

+0

あなたのMacでGitHubデスクトップを設定しましたか? –

答えて

31

解決済み。 GitHubのデスクトップは、(私が自作を経由して、それをインストールしていた)のgpgを見つけることができない不満たように、私はGPGの正確なパスをgitの指示する方法があるはず考え出し

、判明している。

だから、次のことを実行している

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

は、問題を解決:

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

GitHubのが私に戻って持って、一部のユーザーはまた、使用する必要があることを言った:

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

また、https://github.com/isaacs/github/issues/675で追跡されます – balupton

関連する問題