# Does 'git config' accept the '--remove' option?

3 messages from 2017-06-21 to 2017-06-21. Participants: Kaartic Sivaraam, Junio C Hamano.
Thread: https://gitlist.dev/t/46225

## Kaartic Sivaraam, 2017-06-21 18:12

Subject: Does 'git config' accept the '--remove' option?
Message-ID: <1498068738.32360.7.camel@gmail.com>
URL: https://gitlist.dev/e/1498068738.32360.7.camel%40gmail.com

```
Hello all,	

I recently noticed that when I run 'git config' with the '--remove
<non_existing_section>' I get a warning that section doesn't exist.
When I scrolled through the man page of git-config I could see any
mention about the '--remove' option. I only see that there is a '
--remove-section' option. Sample output,

> $ git config --remove test
> fatal: No such section!
> $ git config --remove-section test
> fatal: No such section!

Is this a bug (or) is the documentation stale ?

-- 

Regards,
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>

```

## Junio C Hamano, 2017-06-21 18:34

Subject: Re: Does 'git config' accept the '--remove' option?
Message-ID: <xmqqzid1p4tw.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqqzid1p4tw.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <1498068738.32360.7.camel@gmail.com>

```
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com> writes:

> I recently noticed that when I run 'git config' with the '--remove
> <non_existing_section>' I get a warning that section doesn't exist.
> When I scrolled through the man page of git-config I could see any
> mention about the '--remove' option. I only see that there is a '
> --remove-section' option. Sample output,
>
>> $ git config --remove test
>> fatal: No such section!
>> $ git config --remove-section test
>> fatal: No such section!
>
> Is this a bug (or) is the documentation stale ?

Neither, I would say.  I think that you would get exactly the same
behaviour from 

    $ git config --remo test
    $ git config --remove-sec test

These are merely "unique prefix can be abbreviated in option names"
kicking in, I think.


    

```

## Kaartic Sivaraam, 2017-06-21 18:43

Subject: Re: Does 'git config' accept the '--remove' option?
Message-ID: <1498070618.32360.15.camel@gmail.com>
URL: https://gitlist.dev/e/1498070618.32360.15.camel%40gmail.com
In-Reply-To: <xmqqzid1p4tw.fsf@gitster.mtv.corp.google.com>

```

On Wed, 2017-06-21 at 11:34 -0700, Junio C Hamano wrote:
> Neither, I would say.  I think that you would get exactly the same
> behaviour from 
> 
>     $ git config --remo test
>     $ git config --remove-sec test
> 
> These are merely "unique prefix can be abbreviated in option names"
> kicking in, I think.
> 
Interesting. This is the first time I'm hearing this.


```
