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 'root@ubuntu.(none)')
解决办法:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
执行以上两个步骤就OK了!
本文介绍了一种常见Git配置问题的解决方案,当遇到Git无法自动检测到有效的电子邮件地址时,可以通过设置全局用户电子邮件和用户名来解决。这有助于正确地在Git提交中标识用户。
2957

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



