Skip to content

Instantly share code, notes, and snippets.

@diegofcornejo
Forked from repodevs/macOS.sh
Created June 19, 2024 06:11
Show Gist options
  • Save diegofcornejo/fcbaa41dc28153ff317c6589da879c39 to your computer and use it in GitHub Desktop.
Save diegofcornejo/fcbaa41dc28153ff317c6589da879c39 to your computer and use it in GitHub Desktop.
gpg: signing failed: Inappropriate ioctl for device macOS
❱ git config user.signingKey 38AF394C
❱ git config commit.gpgSign true
echo "test" | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
test
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device
export GPG_TTY=$(tty)
echo "test" | gpg --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
test
-----BEGIN PGP SIGNATURE-----
XXXXXX SUCCESS XXXX
-----END PGP SIGNATURE-----
ref: https://github.com/keybase/keybase-issues/issues/2798
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment