Git seems to support configuration values at three levels:
- Per-system global settings (stored in
- Per-user global settings (stored in
- Per-repository local settings (stored in
These options cover most of the basis but I'm looking for a way to handle a fourth level. I have a (very) large collection of repositories for which I need to use a different value for
user.email than my usual. These repositories are often created and manipulated through automated scripts, and setting up per repository local settings is cumbersome.
All of the repositories in question are located under a certain path prefix on my local system. Is there a way to set a configuration value somewhere that will be inherited by all repositories under that path? (Sort of like
.htaccess settings inherit all the way up the file system.) Perhaps there would be a way to set conditional values in the global config file? What other arrangements could be made in a UNIX environment to cope with a set of repositories like mine?