From: Dominique Dumont <dod@debian.org>
To: git@vger.kernel.org
Subject: Feature request: read git config from parent directory
Date: Thu, 08 Dec 2016 20:49:58 +0100 [thread overview]
Message-ID: <3881793.6JIRvg1BPW@ylum> (raw)
Hello
I use the same machine for work and open-source contribution. In both cases, I
deal with a lot of repositories. Depending on whether I commit for work or
open-source activities, I must use a different mail address. I used to setup
work address for each work repo in git local config, but this is no longer
practical.
Since I use different directories for work and open-source, would it be
possible for git to read irs config also from parent directories ? I.e. setup
git to read config from ./.git/config then ../.gitconfig, ../../gitconfig until
global ~/.gitconfig.
All the best
--
https://github.com/dod38fr/ -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/ -o- irc: dod at irc.debian.org
next reply other threads:[~2016-12-08 19:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-08 19:49 Dominique Dumont [this message]
2016-12-09 12:38 ` Feature request: read git config from parent directory Duy Nguyen
2016-12-10 11:16 ` Dominique Dumont
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=3881793.6JIRvg1BPW@ylum \
--to=dod@debian.org \
--cc=git@vger.kernel.org \
/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).