1、--local: 本地设置(仅对当前仓库有效)
git config --local user.name “你的名称”
git config --local user.email “你的邮箱”
2、--global 全局设置(对当前用户的所有仓库有效)
git config --global user.name “你的名称”
git config --global user.email “你的邮箱”
3、查看配置(查看已配置的git账户信息)
git config -list --loacal
git config -list --global