When using a single computer for multiple categories of development (personal,
work, etc), there is often a need to set a specific user.email value for each
repository cloned depending on the use. For example, it’d make sense to use your
work email for repositories cloned for work while you’d use your personal email
for you own projects.
Without the following setup, it’s very easy to forget to override your
user.email at a repository level and end up committing to one or the other
with the wrong email attached. Though not the end of the world, I can imagine
your company, coworkers, and security department would prefer to see your work
email attached to all commits instead of a random Gmail account.