My Profile Photo

Sheogorath's Blog


Depending on the time of the day a friend, a colleague, a wise guy. The beauty of the world is its sense of humor to show humans their way by letting them search their own.


Cover image for this blog post

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.