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

当创建Vue项目时遇到'WARN Skipped git commit due to missing username and email in config'错误,原因是git未绑定用户名和邮箱。解决方法是在终端使用`git config --global user.name yourname`和`git config --global user.email youremail@example.com`配置个人信息。配置后,通过`git config user.name`和`git config user.email`检查是否设置成功。如果在生成README.md时卡住,可以按Ctrl+C退出。

创建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 退出完事
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值