-
Notifications
You must be signed in to change notification settings - Fork 129
GitHub Desktop: error: cannot run gpg: No such file or directory #675
Comments
Tracked here too it seems http://stackoverflow.com/q/36941533/130638 |
Solved it via workaround. So as GitHub Desktop was complaining about not being able to find gpg (I had installed it via homebrew), I figured there should be a way to tell git the exact path of gpg, turns out there is:
So running the following solved the problem:
GitHub got back to me and said that some users also need to use (why this is needed I have no idea):
I've automated this via the |
Without it, I had this error: |
Any way to get this working with Passphrase?
|
Try out this process out @freak4pc, works well for me: https://gist.github.com/bmhatfield/cc21ec0a3a2df963bffa3c1f884b676b |
I followed guides multiple times, and in the end, my mistake was inputting I will also note that I was unable to generate a key for a while because I added those conf files in prior to generating the key. Something about them prevented the key from being generated for me. So I did the key first, THEN added the conf files. Edit: so it's April 1 now and I changed my email again and went through this process one more time. Turns out I did everything right the first time, I just had to restart my computer. So, try a restart if you're still failing. |
In my case as I use gpg2 it was:
|
This is my gist that explain how to enable auto-signing of Git commits for EVERY programs that don't support it natively.. |
I tried git config --global gpg.program
/usr/bin/gpg
gpg-agent
gpg-agent[5485]: gpg-agent running and available
cat ~/.gnupg/gpg-agent.conf
allow-preset-passphrase
default-cache-ttl 28800
pinentry-program /usr/bin/pinentry-gnome3 |
After pulling the latest develop branch and upgrading packages, magit started complaining about not being able to find emacsclient and not being able to gpg sign commits. The changes in this commit were made based on some Googling magit/magit#2318 isaacs/github#675
Well, that's not really a solution, that entirely turns off Verified Commits :) |
I highly suggest to follow this gist, note: for several cases, if you can't generate the key, ensure you have to remove no-tty line from ~/.gnupg/gpg.conf |
Awesome, thank you ! |
Worked for me. Thanks! |
So according to https://github.com/blog/2144-gpg-signature-verification I setup GPG and my signing key, and it seems to be working via the terminal. However, GitHub Desktop doesn't like it.
Whenever I click the "Commit to master" button on GitHub Desktop on OSX, I get:
Using GitHub Desktop version Beset by Computers (220) on OS X 10.11.4 (15E65)
The text was updated successfully, but these errors were encountered: