Configuration levels

In Git, we have three configuration levels:

  • System
  • Global (user-wide)
  • Repository

There are different configuration files for every different configuration level.

You can basically set every parameter at every level, according to your needs. If you set the same parameters at different levels, the lowest-level parameter hides the top-level ones; so, for example, if you set user.name at the global level, it will hide the one eventually set up at the system level, and if you set it at the repository level, it will hide the one specified at the global level and the one eventually set up at the system level.

The following figure will help you to better understand these levels:

..................Content has been hidden....................

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