# Functions
Add Adds a new line to the option without altering any existing values.
Blob Similar to --file but use the given blob instead of a file.
Bool git config will ensure that the output is 'true' or 'false' --bool.
BoolOrInt git config will ensure that the output matches the format of either --bool or --int, as described above.
Edit Opens an editor to modify the specified config file; either --system, --global, or repository (default).
Entry Adds a configuration entry.
File Use the given config file instead of the one specified by GIT_CONFIG.
Get the value for a given key (optionally filtered by a regex matching the value).
GetAll Like get, but returns all values for a multi-valued key.
GetColor Find the color configured for name (e.g.
GetColorBool Find the color setting for name (e.g.
GetRegexp Like --get-all, but interprets the name as a regular expression and writes out the key names.
GetURLMatch When given a two-part name section.key, the value for section.<url>.key whose <url> part matches the best to the given URL is returned (if no such key exists, the value for section.key is used as a fallback).
Global For writing options: write to global ~/.gitconfig file rather than the repository .git/config, write to $XDG_CONFIG_HOME/git/config file if this file exists and the ~/.gitconfig file doesn’t.
Int git config will ensure that the output is a simple decimal number.
List List all variables set in config file, along with their values.
Local For writing options: write to the repository .git/config file.
NameOnly Output only the names of config variables for --list or --get-regexp.
Null For all options that output values and/or keys, always end values with the null character (instead of a newline).
Path git-config will expand leading ~ to the value of $HOME, and ~user to the home directory for the specified user.
RemoveSection Remove the given section from the configuration file.
RenameSection Rename the given section to a new name.
ReplaceAll Default behavior is to replace at most one line.
ShowOrigin Augment the output of all queried config options with the origin type (file, standard input, blob, command line) and the actual origin (config file path, ref, or blob id if applicable).
System For writing options: write to system-wide $(prefix)/etc/gitconfig rather than the repository .git/config.
Unset Remove the line matching the key from config file.
UnsetAll Remove all lines matching the key from config file.