File Type
- Warehouse level (currently valid warehouse) local
- User level (the current user) global
- System level (Global System active) System
System-level configuration
git config --system user.name 'JiYu'
git config --system user.email '[email protected]'
- Git configuration information is stored in the directory / etc / gitconfig file installation
User-level configuration
git config --global user.name 'JiYu'
git config --global user.email '[email protected]'
- The configuration information is stored in C: \ Users \ Administrator directory under the .gitconfig
Warehouse level configuration
git config user.name 'JiYu'
git config user.email '[email protected]'
- The configuration information is stored in a warehouse under the current directory .git / config in
View configuration information
git config --local -l
Edit Profile
git config --local -e