From: Johannes Schindelin Date: Tue, 15 Jul 2008 15:02:16 GMT Subject: Re: git config oddity Message-ID: In-Reply-To: Hi, On Tue, 15 Jul 2008, Sverre Rabbelier wrote: > I noticed today that when unsetting the last value in a group git > config leaves the empty group header. That is on purpose. As .git/config was always meant as a user-editable file, you can put comments into that section. Or comment out some values. So "git config" does not remove the section, even if no variable is there at the moment. It is somewhat unfortunate that setting a variable does not find the section; the reason is that it sees sections only when a variable is set (to avoid having to do the parsing itself). Hth, Dscho