git查看config配置信息
- 作者: Black66506319
- 来源: 51数据库
- 2022-09-20
| 导读 | 可以使用git config查看具体配置帮助信息 |
查看配置
config 配置有system级别 global(用户级别)和local(当前仓库)三个设置先从system->global->local 底层配置会覆盖顶层配置 分别使用--system/global/local 可以定位到配置文件
查看系统config
git config --system --list
查看当前用户(global)配置
git config --global --list
查看当前仓库配置信息
git config --local --list
如下为查看系统config信息。

配置用户信息
git config --global user.name "your name" //你的名称 git config --global user.email "your email" //你的邮箱
推荐阅读
