添加配置
git config [–local | --global | --system] user.name ‘Your name’
git config [–local | --global | --system] user.email ‘Your email’
查看配置
git config --list [–local | --global | --system]
区别
local:区域为本仓库
global: 当前用户的所有仓库
system: 本系统的所有用户
位置
local的在.git/config里面;
global的在个人home目录下的.gitconfig里面;
system应该在git安装目录的下。