Your comments

When gpg signing failed, run gpg -k and see if an entry like this exists
pub rsa2048 2017-04-09 [SC] [expired: 2021-09-12]
40D865333C9491494D7B17317DA50F9C2CA6CF10
uid [ expired] Blub

Here a valid entry
pub rsa4096 2021-12-13 [SC] [expires: 2023-12-12]
40D865333C9491494D7B17317DA50F9C2CA6CF10
uid [ unknown]Blub

Note that 40D865333C9491494D7B17317DA50F9C2CA6CF10 is the key id specified in the smartgit settings.
I sadly could not find a CLI argument to get only data for a specific key id.