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

Re: different name and email address depending on folder

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Jan 8, 2011, 08:29 UTC
Message-ID
<20110108082957.GE27334@kytes>
In-Reply-To
<A1770B45-1A98-49C3-8CD0-C61A51FFB66E@gmail.com>
Hi Rich,
Rich Eakin writes:
> I am currently using git-config in a bash script to set my user / email.  I was wondering if it was possible to tell git that if I am in a certain directory to use a specific user / email other than what is in my global config.  

It's possible on a per-repository basis, as I pointed out in the last email; but no- I don't think it's possible on a per-directory basis within the same repository. You might consider separting your private work from your company's repository.

p.s- I think you've used the term "global" incorrectly here. Global configuration applies to all repositories. Per-repository configuration overrides the global configuration for that repository.

-- Ram
Previous: Rich Eakin
Message 4 of 4 in “different name and email address depending on folder”
  1. Rich EakinJan 8, 2011
  2. Ramkumar RamachandraJan 8, 2011
  3. Rich EakinJan 8, 2011
  4. Ramkumar RamachandraJan 8, 2011

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.