Skip to content

Instantly share code, notes, and snippets.

@rabbitz
Forked from repodevs/macOS.sh
Created November 4, 2021 03:14
Show Gist options
  • Save rabbitz/ae8dd5e0eb3517288dc49bb00666d9cc to your computer and use it in GitHub Desktop.
Save rabbitz/ae8dd5e0eb3517288dc49bb00666d9cc 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