Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to obtain the effective git-config values and their source? [duplicate]

Tags:

git

git-config

I know git-config doesn't know all possible default values, but is there any way to see not only which config values apply to the current repo but also which config (local, global, system) is responsible?

like image 804
Tobias Kienzler Avatar asked Feb 09 '17 09:02

Tobias Kienzler


People also ask

What is the correct command to check all the configuration made on git?

The git config list command will show all Git config properties throughout all of the variously scoped Git files.

How can you use the git config command?

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.

What are the three levels of configurations available in git?

# There are 3 levels of git config; project, global and system.


1 Answers

Sure, just

git config --list --show-origin
like image 154
Tobias Kienzler Avatar answered Sep 20 '22 20:09

Tobias Kienzler