Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I show my global Git configuration?

Tags:

git

I'd like to show all configured Git sections.

I only found git config --get core.editor, and I'd like to output everything that's configured globally, not only the configured default editor.

like image 428
wullxz Avatar asked Sep 03 '12 21:09

wullxz


People also ask

How do I see my git global config?

List and show global git config. To see all of properties configured globally in Git, you can use the –list switch on the git config command. Adding the –show-origin switch will also tell you the global . gitconfig file's location.

Where is the global git config file on Windows?

The file at %USERPROFILE%\. gitconfig is considered the master global file where you make all your changes. Run this command from within a Windows command shell to create a symbolic link for the system and global file.

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.


2 Answers

You can use:

git config --list 

or look at your ~/.gitconfig file. The local configuration will be in your repository's .git/config file.

Use:

git config --list --show-origin 

to see where that setting is defined (global, user, repo, etc...)

like image 83
Cameron Skinner Avatar answered Oct 07 '22 01:10

Cameron Skinner


The shortest,

git config -l 

shows all inherited values from: system, global and local

like image 26
linquize Avatar answered Oct 07 '22 01:10

linquize