☰
git commit报错:作者身份未知*** 请告诉我您是谁。运行 git config --global user.email “you@example.com“
2026/10/12 5:34:40 网站建设 项目流程

执行git commit命令时报错:

作者身份未知 *** 请告诉我您是谁。 运行 git config --global user.email "you@example.com" git config --global user.name "Your Name" 来设置您账号的缺省身份标识。 如果仅在本仓库设置身份标识,则省略 --global 参数。 致命错误:无法自动探测邮件地址(得到 'root@localhost.(none)')

解决方法:按照提示执行:

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

之后重新git commit正常了:

需要专业的网站建设服务?

联系我们获取免费的网站建设咨询和方案报价,让我们帮助您实现业务目标

立即咨询