Git and github commit-sign error

Hi - I got some kind of sign-error with commit in Rstudio.

Git works without hitch in batch and I can also push and pull from github. Stage seems to work as well. Only commit fails (from Rstudio, batch works)

my-git.exe-path commit -F local git-commit-message-873c4702787d.txt
--gpg-signerror: gpg failed to sign the data:
gpg: skipped "MY NAME ": No secret key
[GNUPG:] INV_SGNR 9 MY NAME
[GNUPG:] FAILURE sign 17
gpg: signing failed: No secret key

This started as a local project that we this spring migrated to github.

I started a fresh project that I pulled from github (worked). Changes I make are then able to be committed from bash but not Rstudio.

I found the reason when running git config --list in the Rstudio terminal.

commit.gpgsign=TRUE

but only when opening the project from Rstudio, not in git Bash.

I'm pretty new at this so probably something I've done wrong. Had "Sign git commits" boxed in first but changed that, shouldn't that have set that option to FALSE?