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

different name and email address depending on folder

From
RERich Eakin <reakinator@gmail.com>
Date
Jan 8, 2011, 00:52 UTC
Message-ID
<3178E076-FA22-4C3C-BEB2-2581A0E12086@gmail.com>
Hi,
I am using git for development with a company and myself on the same computer and the name / user fields need to be different for each.  As I keep all my company's repos in one directory and my private stuff in another, I was wondering if there is a way to tell git to use a separate user and email whenever I make commits from within a specified directory.  
If anyone can tell me how to do this, or some other way to achieve my needs, I am very thankful.

Best Regards, Rich

Next: Ramkumar Ramachandra
Message 1 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.