Re: different name and email address depending on folder
- From
- Rich Eakin <reakinator@gmail.com>
- Date
- Jan 8, 2011, 08:16 UTC
- Message-ID
- <A1770B45-1A98-49C3-8CD0-C61A51FFB66E@gmail.com>
- In-Reply-To
- <20110108073928.GD27334@kytes>
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.
On 08/01/2011, at 6:39 PM, Ramkumar Ramachandra wrote:
Show 10 quoted lines
> Hi Rich, > > Rich Eakin writes: >> 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. > > Yes. Please see the 'user.name' and 'user.email' configuration options > in git-config(1). You can set them globally or on a per-repository > basis. > > -- Ram