git Please tell me who you are解决方法:

git commit -m "some init msg"
*** Please tell me who you are.

Run
  git config --global user.email "[email protected]"
  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 '[email protected](none)')

解决方法:

所以解决方法是当出现这个上述提示后 接着补充
你在命令行中执行

git config --global user.email "你的邮箱"

($ git config --global user.email [email protected]

git config --global user.name "你的名字"

($ git config --global user.name Zhao)

(注意 “ 前面是有空格的)

输入完后再接着执行git commit 即可成功!

Git中容易出错的地方

相关文章: