tags:

views:

33

answers:

1

With bash and zsh I can source subfiles in order to better organize my config.

Can I do something similar with .gitconfig?

+1  A: 

Currently, no.

As I mentioned in Is it possible to include a file in your .gitconfig, you already have 3 separate gitconfig for you to get your settings organized:

$GIT_DIR/config

Repository specific configuration file. (The filename is of course relative to the repository root, not the working directory.)

~/.gitconfig

User-specific configuration file. Also called "global" configuration file.

$(prefix)/etc/gitconfig

System-wide configuration file

Config File inclusion was discussed in May 2010, and a first patch was written by Ævar Arnfjörð Bjarmason, but I don't see this patch in one of the latest "what's cooking in Git".

VonC