Generally, I want my commits to use “”.

Not for work, though. For those, I want to be “”.

Work Config


	email =

Global Config


	name = Your Name
	email =

[includeif "gitdir:~/work-stuff/"]
        path = .gitconfig-work


The global config is used generally. A conditional include is used when the directory matches, overwriting/augmenting values in the default config.

Now, based on the directory, git config will return different values, keeping my silly personal identity out of professional commit logs.