From: Timothee Cour <thelastmammoth@gmail.com>
To: git@vger.kernel.org
Subject: git makes it impossible to ignore or override global gitconfig, needs `GITCONFIGFILE`
Date: Wed, 18 Mar 2020 22:48:17 -0700 [thread overview]
Message-ID: <CANri+Ey71QbWxNH+RhMfYuUSDEpYtv28ushUhK8Tt0xWUAU9iw@mail.gmail.com> (raw)
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
## note:
I've asked here:
https://groups.google.com/forum/#!topic/git-users/1ehWsItL8vE but got
0 response after 6 months
next reply other threads:[~2020-03-19 5:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-19 5:48 Timothee Cour [this message]
2020-03-19 6:44 ` git makes it impossible to ignore or override global gitconfig, needs `GITCONFIGFILE` Eric Wong
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANri+Ey71QbWxNH+RhMfYuUSDEpYtv28ushUhK8Tt0xWUAU9iw@mail.gmail.com \
--to=thelastmammoth@gmail.com \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).