There's more...

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 [email protected]

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:

$ git config my.own.config 
Whatever I need  

It is also very easy to delete/unset configuration entries:

$ git config --unset my.own.config  

List the value:

$ git config my.own.config 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.5.239