Play with git filter and identity. sample with https://github.com/apeyroux/emacs.nix
$HOME/.gitconfig
[filter "identity"]
clean = clean-git -c -n Px -f Alexandre -m alex@xxxx.io -o MyORG
smudge = clean-git -s -n Px -f Alexandre -m alex@xxxx.io -o MyORG
required = true.gitattributes in ours projects :
emacs.el filter=identityMissing: (-n|--name NAME) (-f|--firstname FIRSTNAME) (-o|--org ORG)
(-m|--mail MAIL)
Usage: clean-git (-n|--name NAME) (-f|--firstname FIRSTNAME) (-o|--org ORG)
(-m|--mail MAIL) [-c|--clean] [-s|--smudge]
git clean identity