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

Re: git config: unintuitive behaviour with --global and --no-includes

From
Ben Knoble <ben.knoble@gmail.com>
Date
Jul 20, 2026, 12:25 UTC
Message-ID
<A5FBF044-4F91-456D-AD17-C3047DA0F973@gmail.com>
In-Reply-To
<20260720113402.0dc16abe@frustcomp.hnjs.home.arpa>
Show 7 quoted lines
> Le 20 juil. 2026 à 06:02, Hendrik Jaeger <ml_git@henk.geekmail.org> a écrit :
> 
> Hi
> 
> I ran into a problem working with lbmk (https://codeberg.org/libreboot/lbmk).
> To see whether git is correctly configured, it runs `git config --global user.name` and that failed for my setup.
> The reason is that I have user.name and user.email not directly in the normal git config file but in an included file and when given a scope like --global `git config` does not by default check included files.
[snip]
> Regarding the initial issue: I just added --includes to the call in lbmk and it works just fine, so there is no need to address this.
I wonder why not use « git config user.name » without scope? That seems to sidestep the problem. Unless there’s a reason to use global-scope only? There’s also « git var GIT_AUTHOR_IDENT ».
Previous: Hendrik JaegerNext: Jeff King
Message 2 of 5 in “git config: unintuitive behaviour with --global and --no-includes”
  1. Hendrik JaegerJul 20, 2026
  2. Ben KnobleJul 20, 2026
  3. Jeff KingJul 20, 2026
  4. Junio C HamanoJul 20, 2026
  5. Hendrik JaegerJul 21, 2026

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.