出错“Author identity unknown *** Please tell me who you are. Run git config --glo”

当使用git出现错误

Author identity unknown

*** 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 <2454373641@qq.com>) not allowed

解决方法:

依次输入以下命令:

1git init
2.git config user.name  "gitee/gitHub的用户名称"
3.git config user.email  "你的邮箱"
4.git add *
5.git commit -m "注释"

 

posted @ 2021-11-03 17:04  湘summer  阅读(5986)  评论(0编辑  收藏  举报