different name and email address depending on folder
- From
- Rich 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