How do I show my global Git configuration?
![]()
One important thing about git config:
git config has –local, –global and –system levels and corresponding files.
So you may use git config –local, git config –global and git config –system.
By default, git config will write to a local level if no configuration option is passed. Local configuration values are stored in a file that can be found in the repository’s .git directory: .git/config
Global level configuration is user-specific, meaning it is applied to an operating system user. Global configuration values are stored in a file that is located in a user’s home directory. ~/.gitconfig on Unix systems and C:Users.gitconfig on Windows.
System-level configuration is applied across an entire machine. This covers all users on an operating system and all repositories. The system level configuration file lives in a gitconfig file off the system root path. $(prefix)/etc/gitconfig on Linux systems. On Windows this file can be found in C:ProgramDataGitconfig.
So your option is to find that global .gitconfig file and edit it.
Or you can use git config –global –list.
This is exactly the line what you need.

