Git - includeIf
Today I learned about the
includeIf instruction in git configuration, which can be used to add conditional includes based on paths and alike. This makes it perfect to be used in your global git configuration to adjust your identity for work and private contributions or internal and external contributions.
I came across this in an article while writing a best-practice guide for my team at work and checking for general branching conventions. While I actually don’t have a use-case for it myself, I’m sure it can be useful for many who have to manage two or more git identities or setting profiles.