Interface ConfigGitOptions

ConfigGitOptions defines the supported options for the Git config command.

Hierarchy

  • ConfigGitOptions

Properties

--get?: string

Gets a configuration value. Provide the key name to interrogate.

--global?: null

Accesses the global ~/.gitconfig file rather than the repository.

--list?: null

Lists all variables set in the config file, along with their values.

--local?: null

Accesses the repository .git/config file.

--show-scope?: null

Augments the output of all queried config options with the scope of that value.

--system?: null

Accesses the system-wide $(prefix)/etc/gitconfig file.

--unset?: string

Unsets a configuration value. Provide the key name to remove.

set?: [string, string]

Sets a configuration value. Provide the key and value strings to set.

Set is an anonymous option. The name set is not presented to the Git config command. The values passed to the set option are passed as the parameters name and value to the Git config command.