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

Re: BUG: git config --global --get ITEM ignores ~/.config/git/config when ~/.gitconfig is present

From
JLJade Lovelace <jade@jade.fyi>
Date
Feb 11, 2023, 01:44 UTC
Message-ID
<CAFA9we---t=uMy3LmxnU0Hz_9XAR-YFsDqDX16CoNpkiPitFnA@mail.gmail.com>
In-Reply-To
<xmqqsffdf0ji.fsf@gitster.g>
Thanks for the reply.

» git config --get-all --global user.name ; echo $# 0

Same result, no output, exit code zero.
Jade
On Fri, Feb 10, 2023 at 5:33 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 11 quoted lines
>
> Jade Lovelace <lists@jade.fyi> writes:
>
> > Then:
> >
> >  » git config --global --get user.name
> >  » git config --show-scope --show-origin --get user.name
> > global  file:/home/jade/.config/git/config      Jade Lovelace
>
> With "--get" replaced with "--get-all", what do you see?
>
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “BUG: git config --global --get ITEM ignores ~/.config/git/config when ~/.gitconfig is present”
  1. Jade LovelaceFeb 11, 2023
  2. Junio C HamanoFeb 11, 2023
  3. Jade LovelaceFeb 11, 2023
  4. Junio C HamanoFeb 11, 2023
  5. Junio C HamanoFeb 11, 2023
  6. Glen ChooFeb 15, 2023
  7. Junio C HamanoFeb 15, 2023

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.