git Please tell me who you are解决方法

Posted 友 点胡说八道

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git Please tell me who you are解决方法相关的知识,希望对你有一定的参考价值。

在git创建项目时出现,
是因为在创建git文件夹的时候信息不完善导致的
下图是正确
在git创建项目时出现,
是因为在创建git文件夹的时候信息不完善导致的
下图是正确
1.git init
2.git config user.name "someone"
3.git config user.email "[email protected]"
4.git add *
5.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.name "你的名字"


(注意 “ 前面是有空格的)
输入完后再接着执行git commit 即可成功!

以上是关于git Please tell me who you are解决方法的主要内容,如果未能解决你的问题,请参考以下文章

git初使用“*** Please tell me who you are. Run

github 提交使用git commit,报错Please tell me who you are

在git中,当使用git.commit命令时,这个Please tell me who yoy are 怎么解决

git commit -m "wrote a readme file" *** Please tell me who you are.xxx

github commit时出现 Please tell me who you are.以及项目名称管理

提交到github报错Please tell me who you are