git2cpp config

git2cpp config#

Get and set repository or global options


git2cpp config [OPTIONS] [SUBCOMMANDS]


OPTIONS:
  -h,     --help              Print this help message and exit

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