Git-配置user信息

配置user信息

# 配置用户名
git config --global user.name 'your_name'
# 配置邮箱
git config --global user.email '[email protected]'

config的三个作用域,缺省等同于local

git config --local # 只对某个仓库有效 
git config --global # 对当前用户所有仓库有效 
git config --system # 对系统所有登录的用户有效, 基本不用

显示config的配置,加--list

git config --list --local 
git config --list --global 
git config --list --system