From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Rich Eakin <reakinator@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: different name and email address depending on folder
Date: Sat, 8 Jan 2011 13:59:59 +0530 [thread overview]
Message-ID: <20110108082957.GE27334@kytes> (raw)
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
prev parent reply other threads:[~2011-01-08 8:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-08 0:52 different name and email address depending on folder Rich Eakin
2011-01-08 7:39 ` Ramkumar Ramachandra
2011-01-08 8:16 ` Rich Eakin
2011-01-08 8:29 ` Ramkumar Ramachandra [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110108082957.GE27334@kytes \
--to=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=reakinator@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).