git commit 时报错:
** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository. fatal: unable to auto-detect email address (got 'tim@newton.(none)')
解决办法:
找到工程目录的.git文件夹,打开之后找到config文件,在最后边加上一句话(注意 = 左右的空格,还有符号的英文性)
[user]
email = your email
name = your name
本文解决了一个常见的Git使用问题,即在进行git commit操作时遇到的身份信息未设置导致的错误。文章详细介绍了如何通过git config命令全局或局部设置用户的邮箱和姓名,确保Git能够正确识别提交者的身份。

被折叠的 条评论
为什么被折叠?



