查看不同级别的配置文件
# 查看配置 git config -l # 查看系统配置 git config --system -- list # 查看用户(global)配置 git config --global --list # 必须要配置 git config --global user.name "your name" # 配置用户名 git config --global user.email "your email" # 配置邮箱
- 系统配置(gitconfig)文件位于git安装目录etc文件夹中
- 用户配置(.gitconfig)文件位于用户目录中