在github提交代码的时候出现了这个问题:
*** 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 'chenxiao@LAPTOP-S9MH6P88.(none)')
解决方法很简单,只需在当前输入下面两句命令,把引号里的改成自己的邮箱和账号就OK了
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
双引号一定要有
我的是
git config --global user.email "tianyahechu2004@163.com"
git config --global user.name "tianyahechy"
本文详细介绍了在使用GitHub提交代码时遇到的关于未正确设置Git用户邮箱和名称的问题及解决方案。通过运行特定命令,可以轻松地将账户的默认身份信息更改为自己的邮箱和用户名,确保后续代码提交能够正常进行。
1万+

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



