git/list[1] front-page[2] threads[3] people[4] search[5] about
 

feature request - have git honor nested .gitconfig files

From
JSJosh 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!
Next: Jonathan Nieder
Message 1 of 8 in “feature request - have git honor nested .gitconfig files”
  1. Josh SharpeMar 22, 2013
  2. Jonathan NiederMar 22, 2013
  3. Jeff KingMar 22, 2013
  4. Jonathan NiederMar 23, 2013
  5. Jeff KingMar 23, 2013
  6. Junio C HamanoMar 24, 2013
  7. Thomas RastMar 23, 2013
  8. Jeff KingMar 23, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.