提交git报错,User name and email must be set before commit.
![](https://img2022.cnblogs.com/blog/1102058/202205/1102058-20220514153221414-1615374823.png)
解决:在项目下执行以下命令
git config --global user.email "you@example.com" git config --global user.name "Your Name"
解决:在项目下执行以下命令
git config --global user.email "you@example.com" git config --global user.name "Your Name"