| |
|
Git configuration levels
Git configuration levels
The Git config command can argument to mainly accept arguments to specify the configuration level. And belwo are the configuration levels which are available in the Gir config.
--local
When we say about the local it is the default level in Git. And git config will write to a local level if no configuration option is given. And Local configuration values are stored in ".git/config" directory as a file.
--global
When we say about the global, global level configuration is user-specific configuration. Here user-specific means, it is applied to an individual operating system user. And global configuration values are stored in a user's home directory. "~ /.gitconfig" on UNIX systems and "C:\Users\\.gitconfig" on windows as a file format.
--system
Here the system-level configuration is applied across an entire system. Here entire systm means all users on an operating system and all repositories. Here system level configuration file stores in a "gitconfig" file off the system directory. "$(prefix)/etc/gitconfig" on UNIX systems and "C:\ProgramData\Git\config" on Windows.
And the order of priority of the Git config is local, global and system, respectively. This is means when looking for a configuration value, and git will start at the local level and bubble up to the system level. | |
|
|
|
|