Skip to content

Instantly share code, notes, and snippets.

@jadia
Last active March 28, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jadia/8d9496b1babaaff538a40ff480fed1dc to your computer and use it in GitHub Desktop.
Save jadia/8d9496b1babaaff538a40ff480fed1dc to your computer and use it in GitHub Desktop.
Github, SSH - gpg failed to sign the data

GPG sign issue when commiting the message

error: gpg failed to sign the data
fatal: failed to write commit object

sudo apt install -y pinentry-tty && \
sudo update-alternatives --config pinentry

and select /usr/bin/pinentry-tty for tty mode.


Even after this the problem persists then run and add the following line to your ~/.bashrc or ~/.zshrc file

export GPG_TTY=$(tty)

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment