If I set configuration on my ~/.gitconfig file, which config would override it?
.git/config /etc/gitconfig # There are 3 levels of git config; project, global and system.
The git config command is a convenience function that is used to set Git configuration values on a global or local project level. These configuration levels correspond to . gitconfig text files. Executing git config will modify a configuration text file.
The git config list command will show all Git config properties throughout all of the variously scoped Git files.
Lowest to highest priority:
/etc/gitconfig: system wide, edited when --system parameter is used~/.gitconfig: user specific configuration, edited when --global parameter is used.git/config: repository specific configurationIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With