当前位置:   article > 正文

创建vue项目的时候报错:Skipped git commit due to missing username and email in git config.

skipped git commit due to missing username and email in git config, or faile

创建vue项目的时候报错: WARN Skipped git commit due to missing username and email in git config, or failed to sign commit. You will need to perform the initial commit yourself.

在这里插入图片描述

原因:

  • git 进行初始化提交 没有绑定 对应的 git用户名和邮箱

解决:

  • 终端进行配置 以此进行输入即可 只要不报错就没有问题
    • git config --global user.name "xxxx"
    • git config --global user.email "xxxx"
  • 配置完成后进行查看
    • 查看配置的用户名: git config user.name
    • 查看配置的邮箱名: git config user.email

在这里插入图片描述

会遇到这个问题说明也会遇到 创建项目时 终端一直卡在 Generating README.md...

- 直接 Ctrl+c 退出完事
  • 1
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小丑西瓜9/article/detail/705458
推荐阅读
相关标签
  

闽ICP备14008679号