Git commit fails because of gpg

~/.gitconfig excerpt

	name = BrutalBirdie
	email = hidden
	signingkey = hidden
	gpgsign = true


default-cache-ttl 300
max-cache-ttl 999999max-cache-ttl 1200
pinentry-timeout 0
pinentry-program /usr/bin/pinentry

I can also use pass to get my passwords via gpg, no problem.
But when I do git commit -m 'foo bar'

git commit -m 'foo bar'
error: gpg failed to sign the data
fatal: failed to write commit object

I migrated from Manjaro to Garuda and also copy-pasted my old ~/.gnupg folder to the new system.
Also tried a fresh one with no success.

1 Like

Oof :man_facepalming:
I imported a very old backup of my gpg key which expired.
Just updated the expire date and all good.

So this is solved.


That was really brutal :wink: