Streamlining Email Management in Git Using IncludeIf
I work simultaneously on different companies’ projects, open-source projects, and personal projects. I should therefore use the same username but distinct email addresses for each of them. Although we can set a git config user.email <email@example.com> for each project repository, this might be a tedious manual task and perhaps unsuitable.
The Git config manual describes the use of configuration files to better manage such a task through “Conditional includes”.
Situation All my projects, both work and non-work, are located under the the ~/src/ directory.
[Read More]