# Re: \[BUG\] git config --unset is not idempotent

- From: Junio C Hamano \<hidden\>
- Date: 2022-08-25 16:25:32 
- List: git
- Page: https://ratatoskr.run/git/2022/08/7955009
- Thread: https://ratatoskr.run/git/2022/08/7955009/t.md

```text
Arturo Seijas Fernandez [ref] writes:

> The command "git config --unset [option]" is not idempotent. It is
> currently returning a success  code when the property had already been
> set and a 5 error code otherwise.

"rm" is not "idempotent", either.

    echo >file
    rm file ; echo $?
    rm file ; echo $?

The "git config --unset" command signals the inability to unset a
variable when the variable to be unset does not even exist.
```
