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
  •  | 
  •  

문제

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)

도움이 되었습니까?

해결책

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
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top