July 2018
Intermediate to advanced
354 pages
10h 57m
English
It is also easy to set configuration values. You can use the same syntax as you did when querying the configuration, except you need to add an argument to the value. To set a new email address on the LOCAL layer, we can execute the following command line:
git config user.email john.doe@example.com
The LOCAL layer is the default, if nothing else is specified. If you require whitespaces in the value, you can enclose the string in quotation marks, as you would do when configuring your name:
git config user.name "John Doe"
You can even set your own configuration, which does not have any effect on the core Git, but which can be useful for scripting/builds, and so on:
$ git config my.own.config "Whatever I need"
List the value: ...
Read now
Unlock full access