From: Eric Wong <e@yhbt.net>
To: Timothee Cour <timothee.cour2@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git makes it impossible to ignore or override global gitconfig, needs `GITCONFIGFILE`
Date: Thu, 19 Mar 2020 06:44:07 +0000 [thread overview]
Message-ID: <20200319064407.GA26408@dcvr> (raw)
In-Reply-To: <CANri+Ey71QbWxNH+RhMfYuUSDEpYtv28ushUhK8Tt0xWUAU9iw@mail.gmail.com>
Timothee Cour <thelastmammoth@gmail.com> wrote:
> git makes it impossible to ignore global gitconfig. This is
> essentially what's being asked here:
> https://stackoverflow.com/questions/23400449/how-to-make-git-temporarily-ignore-gitconfig
>
> ## proposal:
> add an environment variable (like for tig and other programs), eg:
> `GITCONFIGFILE=~/.gitconfig_temp git diff`
> seems like an easy change that would make it easy for users to ignore
> or override their gitconfig
You can use GIT_CONFIG for that, and there's also
GIT_CONFIG_NOSYSTEM. They're both documented in the
git-config(5) manpage.
> ## note:
> I've asked here:
> https://groups.google.com/forum/#!topic/git-users/1ehWsItL8vE but got
> 0 response after 6 months
Oh well... I don't pay any attention to that list, and not too
much to this one, either. I was just working on the archives
and noticed this was the latest message on this list :>
next prev parent reply other threads:[~2020-03-19 6:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-19 5:48 git makes it impossible to ignore or override global gitconfig, needs `GITCONFIGFILE` Timothee Cour
2020-03-19 6:44 ` Eric Wong [this message]
2020-03-19 16:51 ` Jeff King
2020-03-20 2:28 ` Timothee Cour
2020-03-20 5:41 ` Jeff King
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=20200319064407.GA26408@dcvr \
--to=e@yhbt.net \
--cc=git@vger.kernel.org \
--cc=timothee.cour2@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.