Ryan W Ryan W - 7 months ago 78
Git Question

IntelliJ fails to commit changes when attempting to sign commit (GPG)

I have been working on setting up my development environment, so when I create a commit it is automatically signed by GPG. I followed Githubs documentation on the matter here: https://help.github.com/categories/gpg/.

I am attempting to use IntelliJ's git interface to create a commit, but it always fails with this error.

gpg: cannot open `/dev/tty`: Device not configured
error: gpg failed to sign the data
fatal: failed to write commit object

I do not encounter this error when using git directly from my terminal, I discovered an issue where someone had a similar problem (with Source Tree) and mentioned something about the GUI not popping up to enter passphrase. I'm assuming this is similar to that issue.

How can I go about fixing this issue?


Configure GPG to allow it to be called from a program by adding the following to your gpg.conf: