git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git appears to ignore GIT_CONFIG environment variable

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 2, 2018, 03:07 UTC
Message-ID
<xmqqpnvoqirp.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<3389BCF7-6170-4242-82D3-0FE7FB2EA5F2@gmail.com>
Sirio Balmelli <sirio.bm@gmail.com> writes:
> It appears that git ignores the GIT_CONFIG environment variable,
> while git-config *does* consider it.

Yup, that is exactly how it is designed and documented. These dasys, with "git config" taking "--file" to work on any arbitrary filename, you do not necessarily need GIT_CONFIG enviornment.

Previous: Sirio BalmelliNext: Sirio Balmelli
Message 2 of 3 in “git appears to ignore GIT_CONFIG environment variable”
  1. Sirio BalmelliNov 2, 2018
  2. Junio C HamanoNov 2, 2018
  3. Sirio BalmelliNov 3, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.