I have two related questions:
- How can I pinpoint which configuration file is used by my Git bash client?
- Can I override the settings in the used configuration file?
I know that there is a system, global and local (aka project) .gitconfig
file. And, according to the Git site , each of these "levels" (system, global, local) overwrites the values ββat the previous level, so the values ββin the ./git/config
(local) visor, for example, in /etc/gitconfig
.
In other words, we are dealing with a hierarchy, and any declaration in the local configuration file will take precedence over one in the global or system configuration file.
But, if the parameter is present, for example, in a global file (for example, a proxy) and is not present in the local file, does this parameter use the proxy server parameter from the global? This would mean that Git works with all the settings in all configuration files before applying the hierarchy rule.
And then, in the example above, if the proxy server parameter from the global is used along with other settings in my local configuration file, how can I override it?
source
share