Gabriel Petrovay
Gabriel Petrovay

Reputation: 21884

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

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)

Upvotes: 2

Views: 596

Answers (1)

Ionică Bizău
Ionică Bizău

Reputation: 113385

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

Upvotes: 6

Related Questions