config 配置分为system、global和local(当前仓库),优先级依次 system global local变低。
查看系统config
git config --system --list
查看当前用户(global)配置
git config --global --list
查看当前仓库配置信息
git config --local --list
增加配置项
git config --global user.name "Your Name"
更改配置项
git config core.filemode true
删除配置项
git config --unset diff.renames
查看配置项
git config core.filemode
git config --get core.filemode