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

Bug? git config and --unset are not inverses

From
Dave Borowitz <dborowitz@google.com>
Date
Jul 29, 2015, 18:59 UTC
Message-ID
<CAD0k6qR0J0ks2mL9TTd4wD7qrzKwadFGC=ecJRCsTcSS0ioo_A@mail.gmail.com>

It looks like git config --unset may leave an orphaned section, but a subsequent set adds a new section:

$ git config --file=myconfig section.foo true
$ git config --file=myconfig --unset section.foo
$ cat myconfig
[section]
$ git config --file=myconfig section.foo true
$ cat myconfig
[section]
[section]
       foo = true
$ git --version
git version 2.5.0.rc2.392.g76e840b
Next: Junio C Hamano
Message 1 of 3 in “Bug? git config and --unset are not inverses”
  1. Dave BorowitzJul 29, 2015
  2. Junio C HamanoJul 29, 2015
  3. Junio C HamanoJul 29, 2015

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.