All the configurations related to git such as the user.email and user.name are stored in the gitconfig files that can be stored at different places based on the option you provided (system, global, local) while setting them up,
- $PATH/etc/gitconfig: Stores the system config values, which are set using --sytem option
- ~/.gitconfig: Stores the personal/global values which are set using --global option.
- .git/config: Stores values at the local repository level, set using the --local option.
You can see all the config values using the command: git config -l or git config --list
Example:% git config -l
user.env=uat
user.email=you@example.com
user.name=Code2care
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
user.team=dev
In order to see the file location of all the config values add the option --show-origin
Example:git config --list --show-origin
file:/etc/gitconfig user.env=uat
file:/root/.gitconfig user.email=you@example.com
file:/root/.gitconfig user.name=Code2care
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config user.team=dev

More Posts related to Git,
- How to ignore files in git using .gitignore file
- How to update expired GitHub token on local git remote config
- How to undo last Git Commit on Local Repository?
- Git Commit - Author identity unknown, Please tell me who you are email
- Git: Step-by-Step - How to Push Local Brach to GitHub
- [Solution] fatal: not a git repository (or any of the parent directories): .git
- Remove git config at Local, Global or System Levels?
- Change the default git branch name from master to main
- fix fatal: --local can only be used inside a git repository error
- Git Remove Untracked Files using Command
- How to remove or unstage a file from git staged area
- Fix Git: Warning: could not find UI helper GitHub.UI on Windows
- Fix [oh-my-zsh] Cant update: not a git repository
- Get List of all local branches git command
- Github: fatal: Authentication failed Support for password was removed on August 13, 2021
- [fix] fatal: this operation must be run in a work tree in git
- How to Install Git on Windows
- Perform an Empty Commit in Git without anything in Staging Area
- Rename git branch on Local and GitHub Remove using Command
- Fix: error: could not lock config file /etc/gitconfig: Permission denied
- Get the file location of git config values
- Git: Delete Branch Locally and Remotely at Origin
- fatal: Unable to create '/c/git_repo/.git/index.lock': File exists. If no other git process is currently running, this probably means a git process crashed in this repository earlier.
- Github: How to Invite Collaborators
- How to change directory in Git bash
More Posts:
- Fix - ssh-copy-id no identities found error - Linux
- Android Studio : Implement abstract methods shortcut - Android-Studio
- PowerShell iterate and get all SharePoint sites and sub sites - SharePoint
- How to fix Microsoft Windows 10 update error 80070020 - Microsoft
- osascript wants to make changes while Android Studio Installation on Mac OS X - Mac-OS-X
- Permanently set $PATH variable in Mac Zsh shell - MacOS
- Android Studio Button onClickListener Example - Android-Studio
- Java JDBC with Join Queries Example - Java