--local <arg...> | Default: write to the repository .git/config file |
--global | For writing options: write to global ~/.gitconfig file rather than the repository .git/config |
--replace-all | Default behavior is to replace at most one line. This replaces all lines matc |
--add | Adds a new line to the option without altering any existing values. This is t |
--get | Get the value for a given key (optionally filtered by a regex matching the va |
--get-all | Like get, but returns all values for a multi-valued key |
--get-regexp <regexp> | Like --get-all, but interprets the name as a regular expression and writes ou |
--get-urlmatch <name> <url> | When given a two-part name section.key, the value for section..key whose part |
--system | For writing options: write to system-wide $(prefix)/etc/gitconfig rather than |
--worktree | Similar to --local except that.git/config.worktree is read from or written to |
-f, --file <config-file> | Use the given config file instead of the one specified by GIT_CONFIG |
--blob <blob> | Similar to --file but use the given blob instead of a file. E.g. you can use |
--remove-section | Remove the given section from the configuration file |
--rename-section | Rename the given section to a new name |
--unset | Remove the line matching the key from config file |
--unset-all | Remove all lines matching the key from config file |
-l, --list | List all variables set in config file, along with their values |
--fixed-value | When used with the value-pattern argument, treat value-pattern as an exact st |
--type <type> | Git config will ensure that any input or output is valid under the given type |
--no-type | Un-sets the previously set type specifier (if one was previously set). This o |
-z, --null | For all options that output values and/or keys, always end values with the nu |
--name-only | Output only the names of config variables for --list or --get-regexp |
--show-origin | Augment the output of all queried config options with the origin type (file |
--show-scope | Similar to --show-origin in that it augments the output of all queried config |
--get-colorbool <name> | Find the color setting for name (e.g. color.diff) and output "true" or "false |
--get-color <name> [default] | Find the color configured for name (e.g. color.diff.new) and output it as the |
-e, --edit | Opens an editor to modify the specified config file; either --system, --globa |
--includes | Respect include.* directives in config files when looking up values. Defaults |
--no-includes | Respect include.* directives in config files when looking up values. Defaults |
--default [value] | When using --get, and the requested variable is not found, behave as if were |