错误:
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.
意思:
作者身份未知
***请告诉我你是谁。
跑
git-config--全局user.email“you@example.com“
git-config--全局用户名“Your name”
设置帐户的默认标识。
解决:
- 新下载的git没有告知身份
-
//分别执行 git config --global user.name "你的名字" git config --global user.email "你的邮箱"
-
然后再执行commit命令,就可以提交成功了;
-- 查看设置的用户名:
git config user.name
-- 查看设置的邮箱:
git config user.email