ZANARDI Bruno

Software Developper

About
Resume

Git Blog

Git command `config`

Definition

You can query/set/replace/unset options with this command. The name is actually the section and the key separated by a dot, and the value will be escaped.

Basic usage

Add / modify a value to all users configuration

$ git config --system <var> <value>

Add / modify a value to user configuration

$ git config --global <var> <value>

Add / modify a value to repository configuration

$ git config --local <var> <value>

List all set variables

$ git config <cfg> -l

Remove a variable

$ git config <cfg> --unset <var>