可以使用git config
查看具体配置帮助信息
一、查看配置
config 配置有system级别 global(用户级别)和local(当前仓库)三个设置先从system->global->local 底层配置会覆盖顶层配置 分别使用–system/global/local 可以定位到配置文件
- 查看系统config
Shell
1 |
git config –system –list |
- 查看当前用户(global)配置
Shell
1 |
git config –global –list |
- 查看当前仓库配置信息
Shell
1 |
git config –local –list |
如下为查看系统config信息
二、配置用户信息
Shell
1 |
git config –global user.name “your name” //你的名称 |
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容