Git multiple config files

Posted by tig on Super User See other posts from Super User or by tig
Published on 2011-11-23T18:20:14Z Indexed on 2013/10/17 16:06 UTC
Read the original article Hit count: 219

Filed under:

As it is told in git-config manual, I have three files to specify git repo configuration: $GIT_DIR/config, ~/.gitconfig and $(prefix)/etc/gitconfig. Is it possible to make git read another config file (for example .gitconfig in root of the repo) after reading $GIT_DIR/config?

I want it as I created git command aliases in .git/config and I would prefer to store them in repo, so I can restore them when cloning and for example.

© Super User or respective owner

Related posts about git