提交git报错,User name and email must be set before commit.


 解决:在项目下执行以下命令

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