How can I list all the git user configurations that were sent since git was installed?

StackOverflow https://stackoverflow.com/questions/19934345

  •  30-07-2022
  •  | 
  •  

Question

I would like to list all the git configuration settings that the user set since git was installed.

I don't know any names or values of the configuration settings.

(In my case I want to find out what causes a particular git behavior)

Était-ce utile?

La solution

The git configuration settings are stored in ~/.gitconfig file.

The file content looks like this:

[user]
        name = My Name
        email = myemail@adress.com
[color]
       ui = true
[push]
        default = matching

To output the configuration settings run this:

git config --list

or

git config --l
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top