git查看config配置信息

可以使用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
2

git config –global user.name “your name” //你的名称
git config –global user.email “your email”     //你的邮箱

© 版权声明
THE END
喜欢就支持一下吧
点赞9赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容