解决上传到github报错Who are you

Posted 墨菲杂货社

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决上传到github报错Who are you相关的知识,希望对你有一定的参考价值。

今天正在愉快地学习在IDEA中使用Git,结果报了下面这个错∑(っ°Д°;)っ


Can't finish GitHub sharing process

Successfully created project 'Demo' on GitHub, but initial commit failed:

*** 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 (null)>) not allowed during executing git -c core.quotepath=false commit -m "Initial commit" --

看了一下错误原因:Run git config --global user.email "you@example.com" git config --global user.name "

原来是git没有配置的原因,找到git安装目录下的Git Bash运行后输入下面两行代码即可:


  1. git config --global user.email "you@example.com"  

  2. git config --global user.name "Your Name"



以上是关于解决上传到github报错Who are you的主要内容,如果未能解决你的问题,请参考以下文章

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

github问题error: src refspec master does not match any解决方法|please tell me who you are

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

git Please tell me who you are解决方法

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

半小时学会上传本地项目到github 及 github提交报错failed to add file / to index解决办法