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.
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.
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.
The git config list command will show all Git config properties throughout all of the variously scoped Git files.
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...)
The shortest,
git config -l
shows all inherited values from: system, global and local
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With