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 git config user.email <email@example.com> for each project repository, this can 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”.

[Read More]
git 

Initial Commit

Like in a typical repo, this blog has its first git commit:

git commit --allow-empty --message "Initial commit"
git