(created/git2cpp/config.md)=
# git2cpp config

```{parsed-literal}
Get and set repository or global options


git2cpp config [OPTIONS] [SUBCOMMANDS]


OPTIONS:
&nbsp; -h,     --help              Print this help message and exit

SUBCOMMANDS:
&nbsp; [list](created/git2cpp/config/list.md)                        List all variables set in config file, along with their values.
&nbsp; [get](created/git2cpp/config/get.md)                         Emits the value of the specified key. If key is present multiple
&nbsp;                             times in the configuration, emits the last value. If --all is
&nbsp;                             specified, emits all values associated with key. Returns error
&nbsp;                             code 1 if key is not present.
&nbsp; [set](created/git2cpp/config/set.md)                         Set value for one or more config options. By default, this
&nbsp;                             command refuses to write multi-valued config options. Passing
&nbsp;                             --all will replace all multi-valued config options with the new
&nbsp;                             value, whereas --value= will replace all config options whose
&nbsp;                             values match the given pattern.
&nbsp; [unset](created/git2cpp/config/unset.md)                       Unset value for one or more config options. By default, this
&nbsp;                             command refuses to unset multi-valued keys. Passing --all will
&nbsp;                             unset all multi-valued config options, whereas --value will unset
&nbsp;                             all config options whose values match the given pattern.
```

```{toctree}
:hidden:
config/get
config/list
config/set
config/unset
```
