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

Re: Feature request: read git config from parent directory

From
Duy Nguyen <pclouds@gmail.com>
Date
Dec 9, 2016, 12:38 UTC
Message-ID
<CACsJy8AgbGXvMC0XWSPuBHEveJfJFEYUgghDC1Yc7Eka1Dyd8Q@mail.gmail.com>
In-Reply-To
<3881793.6JIRvg1BPW@ylum>
On Fri, Dec 9, 2016 at 2:49 AM, Dominique Dumont <dod@debian.org> wrote:
Show 7 quoted lines
> Hello
>
> I use the same machine for work and open-source contribution. In both cases, I
> deal with a lot of repositories. Depending on whether I commit for work or
> open-source activities, I must use a different mail address. I used to setup
> work address for each work repo in git local config, but this is no longer
> practical.

Sounds like the same problem I have (and the reason I came up with conditional include [1]). Would that work for you (check out the example part in that patch)?

It's not supported yet. I'll need to address a few comments in the future reroll.

[1] http://public-inbox.org/git/20160712164216.24072-1-pclouds@gmail.com/
> Since I use different directories for work and open-source, would it be
> possible for git to read irs config also from parent directories ? I.e. setup
> git to read config from ./.git/config then ../.gitconfig, ../../gitconfig until
> global ~/.gitconfig.
-- 
Duy
Previous: Dominique DumontNext: Dominique Dumont
Message 2 of 3 in “Feature request: read git config from parent directory”
  1. Dominique DumontDec 8, 2016
  2. Duy NguyenDec 9, 2016
  3. Dominique DumontDec 10, 2016

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.