fatal: unable to auto-detect email address (got ‘‘)

git commit报错内容图示:git commit报错报错截屏
第一种解决办法:
在终端运行下面两句

 git config --global user.email "you@example.com"
 git config --global user.name "Your Name"

第二中解决办法:

  1. 找到项目根目录下的.git文件下的config文件
    .git文件夹结构图示:
    .git文件夹结构
  2. config文件中添加以下内容:
    [user]
    email=your email
    name=your name
    
    config文件图示:
    config文件截图
  3. 重新执行git commit即可成功

eslint --fix found some errors. Please fix them and try committing again

git commit报错内容图示:

eslint --fix found some errors. Please fix them and try committing again
解决办法:增加--no-verify
在这里插入图片描述

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐