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

- [Fixed] Git Clone git@github.com: Permission denied (publickey) Could not read from remote repository Fatal error
- Github: How to Invite Collaborators
- Git Commit - Author identity unknown, Please tell me who you are email
- [Solution] fatal: not a git repository (or any of the parent directories): .git
- [fix] zsh: command not found: git
- Github: fatal: Authentication failed Support for password was removed on August 13, 2021
- Get List of all local branches git command
- Git Revision Questions Before the Interview
- git fatal: Authentication failed error [fix]
- How to Install Git on Ubuntu Linux
- GitHub: How to Search Code
- How to change Git Default Author and Committer details in Eclipse
- How to check your installed version of Git
- Install GitHub Command Line Tool on Mac
- How to Merge Branch into Master Branch
- Perform an Empty Commit in Git without anything in Staging Area
- Git Fix: fatal: refusing to merge unrelated histories Error
- How to undo last Git Commit on Local Repository?
- git command to remove/unstage files from staging area
- Step-by-Step: Setting up Docker + Ubuntu Linux + Git + GitHub Tutorial
- Remove git config at Local, Global or System Levels?
- Fix [oh-my-zsh] Cant update: not a git repository
- Git Config Command - A Deep Dive
- 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.
- How to change directory in Git bash
- cURL Example using IP (IPv4 and IPv6) address and Port - cURL
- Create Safari Shortcut on Mac Desktop - MacOS
- Java monitoring and management console [jconsole] - Java
- How to tar.gz a directory or folder Command - Linux
- Calculate Volume of Pyramid - C-Program
- SharePoint Designer 2010 - errors were found when compiling the workflow - SharePoint
- [fix] zsh: command not found: telnet on Mac - MacOS
- 30+ Zoom video communications application shortcuts for macOS - MacOS