Please spare me the lecture on how this is a bad practice... I know, but it is a money issue.
We have multiple people who have to use a single computer as needed for a certain project. I want them to always be forced to specify the --author=
when committing, so I do NOT want to have an environment variable set up which would allow them to "forget".
However, it seems --author=
will only override environment variables, so it can not be used when one is not set.
Is there a way I can either set environment variables that will fail when one tries to commit with them, or another method which I can use to force them to add the switch?
If all else fails, I will write my own "git" override script that asks for the author from user input, but I was hoping for something cleaner.
A similar question was asked here: Git specify user and e-mail on commit?
But it never was answered satisfactorily.