feature request - have git honor nested .gitconfig files
- From
- Josh Sharpe <josh.m.sharpe@gmail.com>
- Date
- Mar 22, 2013, 16:50 UTC
- Message-ID
- <CAM2RUGOOWnxRd2=04-NmKTC+tvnCD=ebgmmiexHas5bwyYrm4w@mail.gmail.com>
It'd be cool if I were able to override config settings at every nested directory.
For example, I have my ~/.gitconfig that has one email address in it, but I also have multiple repos inside ~/dev which I want to use a different email address for. The only way to do that now is to edit all of these: ~/dev/*/.git/conf -- and there are lots of them, and new repos get added all the time - and I forget.
If I could add ~/dev/.gitconfig and have the settings in that override ~/.gitconfig then this would be way more manageable. Obviously, individual repo's .git/config should take ultimate precedence.
Thanks for the consideration!