2

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)

1 Answer 1

6

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

The file content looks like this:

[user]
        name = My Name
        email = [email protected]
[color]
       ui = true
[push]
        default = matching

To output the configuration settings run this:

git config --list

or

git config --l
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.