From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id D00D71F619 for ; Thu, 19 Mar 2020 06:44:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727184AbgCSGoI (ORCPT ); Thu, 19 Mar 2020 02:44:08 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:40136 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725787AbgCSGoH (ORCPT ); Thu, 19 Mar 2020 02:44:07 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 2F5F11F619; Thu, 19 Mar 2020 06:44:07 +0000 (UTC) Date: Thu, 19 Mar 2020 06:44:07 +0000 From: Eric Wong To: Timothee Cour Cc: git@vger.kernel.org Subject: Re: git makes it impossible to ignore or override global gitconfig, needs `GITCONFIGFILE` Message-ID: <20200319064407.GA26408@dcvr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Timothee Cour 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 :>