On my system I don't have the user.email
git configuration value set at the global level, on purpose. Instead, I configure it individually in each sandbox. This is because I need to use different e-mail addresses for different projects.
Unfortunately I sometimes forget to configure the value when I create a new sandbox. In those cases, git just "guesses" a value based on information it gets from the environment. That leads to various problems, for example commits are not attributed to me on github, and I won't have much luck getting those commits with @localhost
e-mail addresses attributed to me retroactively.
Is there a way to configure git to error out instead of guessing when I try to commit without a local or global user.email
value configured?