解决办法:
git config需按顺序执行,需 先 config姓名, 后 config邮箱地址!
git config --global user.name "xxx"
git config --global user.email "xxx@xxx.com"
通过google,在stack overflow找到的解决方法:解决方法原链接。
问题描述
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: empty ident name (for <>) not allowed
接着按顺序执行
git config --global user.email "xxx@xxx.com"
git config --global user.name "xxx"
发现依然提示同样的错误
*** 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: empty ident name (for <lipeiyang@cmiot.chinamobile.com>) not allowed