配置user 信息
$ git config --global user.name ‘your_name’
$ git config --global user.email ‘your_email@domain.com’
清除user信息
$ git config --unset --local user.name
$ git config --unset --global user.name
$ git config --unset --system user.name
显示config 的配置加 --list
$ git config --list --local
$ git config --list --global
$ git config --list --system
优先级
local > global > system
![](https://img.haomeiwen.com/i2845027/1e5f9d51329d1b77.png)
网友评论