I donโt know how to really limit commits, and not include a โstolenโ identity, but if you have a centralized repository, you should be able to reliably check who clicked on what changes on the server, and thereby track down the thief's face.
Edit: There seems to be support for signing commits with two extensions, CommitsigsExtension , as well as a less secure approach implemented by GpgExtension .
Signing the changes effectively prevents identity theft because the thief does not have the private identity key that he wants to steal, so he cannot sign the commit.
source share