merray

config 配置指令

 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

 本地测试效果:

由此可见--global中存储了提交用户的email和用户名 如果需要手动设置则可以使用如下指令

git config --global user.name "myname"
git config --global user.email  "test@gmail.com"

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2021-07-05
  • 2021-11-23
  • 2021-12-26
  • 2021-07-28
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2021-12-09
  • 2021-10-18
  • 2021-12-11
  • 2021-09-28
相关资源
相似解决方案