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

RE: [BUG] PREFIX environment variable ignored by git config --system

From
rsbecker@nexbridge.com <rsbecker@nexbridge.com>
Date
Jan 30, 2025, 00:07 UTC
Message-ID
<001501db72aa$fc812350$f58369f0$@nexbridge.com>
In-Reply-To
<xmqqfrl1gosc.fsf@gitster.g>
On January 29, 2025 6:54 PM, Junio C Hamano wrote:
Show 13 quoted lines
><rsbecker@nexbridge.com> writes:
>
>> Those of us who have written documentation for much of our lives,
>> really miss accuracy. There are companies where a wrong bit of
>> documentation is considered as high severity defect. Regardless of that...
>
>The association with that "book" and those who hang around here is that we could
>contribute corrections to them, as they are open source and we are friends, but
>that is about it ;-).
>
>I am reasonably sure that they will appreciate a well researched pull request (and
>"well reserached" does not mean "somebody says this is incorrect" but needs a bit
>more than that).
Well, we are all friends here 😉 
Be that as it may, the following seems to work:

$ GIT_CONFIG_SYSTEM=/home/randall/etc/gitconfig git config --system --list fatal: unable to read config file '/home/randall/etc/gitconfig': No such file or directory

This appears to do exactly what I am looking for. When I create that file, git picks up config values from that file.The question is, is this environment variable actually sanctioned or is it just coincidence? It does exactly what I am looking for.

Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 15 in “[BUG] PREFIX environment variable ignored by git config --system”
  1. rsbecker@nexbridge.comJan 29, 2025
  2. Junio C HamanoJan 29, 2025
  3. rsbecker@nexbridge.comJan 29, 2025
  4. Junio C HamanoJan 29, 2025
  5. rsbecker@nexbridge.comJan 29, 2025
  6. Junio C HamanoJan 29, 2025
  7. rsbecker@nexbridge.comJan 29, 2025
  8. Junio C HamanoJan 29, 2025
  9. rsbecker@nexbridge.comJan 30, 2025
  10. Junio C HamanoJan 30, 2025
  11. rsbecker@nexbridge.comJan 30, 2025
  12. Ben KnobleJan 30, 2025
  13. Junio C HamanoJan 30, 2025
  14. rsbecker@nexbridge.comJan 29, 2025
  15. Junio C HamanoJan 29, 2025

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.