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

Re: feature request: user email config per domain

From
Andrew Ardill <andrew.ardill@gmail.com>
Date
Feb 22, 2017, 23:21 UTC
Message-ID
<CAH5451=AqQ3+sE9P6njXdrFWcgbQoECJX2PXmL1b3xoKX6wv8A@mail.gmail.com>
In-Reply-To
<CAN0Skmmjd5Y0uWz_WC69mAStucZ6nR0mjdp4-ODJz2UnTaB-eQ@mail.gmail.com>
On 23 February 2017 at 00:12, Tushar Kapila <tgkprog@gmail.com> wrote:
Show 7 quoted lines
> I can set my email via:
> git config --global user.email tgkprog@xyz.dom
>
> this is dangerous when I use this my office or in a multi repository
> provider environment where my email is different for a few (like
> tgkprog@search.com for github and tushar@mycompany.com for my company
> private repo).

There has been a large discussion around this idea before, see this thread for example [0].

The proposed idea was to have something set in your global config that would only be turned on if you were within a given directory. This would allow you to have two root directories, one for your work projects and one for open source projects (for example) and any git repositories within those folders would each would have their own config options automatically applied based on their location.

There was a patch suggested, and it worked quite well, but nothing further has been done to my knowledge.

[0] http://public-inbox.org/git/7vvc3d1o01.fsf@alter.siamese.dyndns.org/
Regards,
Andrew Ardill
Previous: Pranit BauvaNext: Jeff King
Message 3 of 6 in “feature request: user email config per domain”
  1. Tushar KapilaFeb 22, 2017
  2. Pranit BauvaFeb 22, 2017
  3. Andrew ArdillFeb 22, 2017
  4. Jeff KingFeb 23, 2017
  5. Igor Djordjevic BugAFeb 23, 2017
  6. Fwd: Re: feature request: user email config per domainIgor Djordjevic, Feb 23, 2017

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.