I got a new windows and struggled with this in RStudio for some days and finally solved it by unboxing this option:
Tools > Global Options > Git/SVN > Sign Git commits
I am not sure whether I accidentally ticked it or it was there in the first place in the new version of it.