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

Possible BUG in 'git config'

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Feb 11, 2007, 14:13 UTC
Message-ID
<e5bfff550702110613q315e1f7es4ca1a88b92e4c3e9@mail.gmail.com>
bash-3.1$ cat ./.git/config
[i18n]
        commitencoding = UTF-8

bash-3.1$ git repo-config --global user.name marco

bash-3.1$ git repo-config user.name marco

I would expect git repo-config user.name returns an empty string, because user.name is defined _only_ in global config file ~/.gitconfig

>From git-config documentation:
--global::
	Use global ~/.gitconfig file rather than the repository .git/config.
How it is possible to know if a variable is stored in local config file?

Thanks Marco

Next: Johannes Schindelin
Message 1 of 5 in “Possible BUG in 'git config'”
  1. Marco CostalbaFeb 11, 2007
  2. Johannes SchindelinFeb 11, 2007
  3. Marco CostalbaFeb 11, 2007
  4. Johannes SchindelinFeb 11, 2007
  5. Marco CostalbaFeb 11, 2007

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.