I have several Github accounts and some of them are for open source repos and I use ssh keys for all of them. I'm constantly swapping workplaces and each time I need to be careful to set git config user.name and git config user.email correctly
We're using CommitLint and Husky
Is there a way to add a rule that doesn't allow you to commit unless your user.email and user.name matches the one I want?
Endgoal is to ensure that all commits, teammates' or mine, are always on the correct user.name/user.email