小言_互联网的博客

GIT LAB 为不同的项目设置不同的用户名和邮箱

487人阅读  评论(0)

 

在每个项目的根目录下都有一个.git 文件夹.

打开,编辑config文件

添加/修改: 


  
  1. [user]
  2. name = BoYiZhang
  3. email = zhangboyi_mx@ 163.com

 

 

实例:

 


  
  1. [core]
  2. repositoryformatversion = 0
  3. filemode = true
  4. bare = false
  5. logallrefupdates = true
  6. ignorecase = true
  7. precomposeunicode = true
  8. [remote "origin"]
  9. url = https:/ /github.com/BoYiZhang/apache-dolphinscheduler- 1.2. 1-src.git
  10. fetch = +refs/heads/* :refs/remotes/origin/*
  11. [branch "master"]
  12. remote = origin
  13. merge = refs/heads/master
  14. [user]
  15. name = BoYiZhang
  16. email = zhangboyi_mx@163.com

 


转载:https://blog.csdn.net/zhanglong_4444/article/details/103824201
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场