git的最小配置
git config --global user.name 'name'
git config --global user.email 'email'
参数 global local system
golbal :对当前用户所有仓库有效
local : 只对某个仓库有效
system :对系统所有登录的用户有效
缺省等同于local
显示config的配置,加 --list
git config --list --local
git config --list --global
git config --list --system
对于一个仓库而言,如果同时配置了local和global 则local的优先级高于global 可以通过查看log信息 显示用户名称和邮件