I know there are a lot of similar questions, but basically, git commit
gives me
error: gpg failed to sign the data
fatal: failed to write commit object
However, thanks to this answer, I can sign commit by signing a random file via gpg in the command line first. This works, but it is pretty annoying. Why do I have to do that ?
I'm using Manjaro KDE.
Thanks to Alvin Tang for giving me the solution that was so simple!
I just had to add these two line:
GPG_TTY=$(tty)
export GPG_TTY
at the bottom of the file located at ~/.bashrc
.