image.png
之前提交代码一直迷惑为什么统计不上去,今天定睛一看,原来跟邮箱设置有关系 : )
image.png

git全局提交邮箱设置

查看并设置全局的git提交邮箱信息

  1. git config --global --list
  2. git config --global user.email "xxx@xxx.com"

git相关知识链接: https://www.yuque.com/allblue-byynd/izub4k/gap2yf#D5m9i

git本地(指定项目)提交邮箱设置

  1. git config --local --list
  2. git config --local user.name "xxx"
  3. git config --local user.email "xxx@xxx.com"