解决上传到github报错Successfully created project 'autotest' on GitHub, but initial commit failed:(示

Posted 大道QA团队

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决上传到github报错Successfully created project 'autotest' on GitHub, but initial commit failed:(示相关的知识,希望对你有一定的参考价值。

通过IDEA上传代码到GitHub上可是有时候会碰到这样的问题。

当我们选择VCS->Import into Version Control->Share Project on GitHub提交代码。点击OK。然后就跳出了这样的信息:

 Can‘t finish GitHub sharing process

Successfully created project ‘autotest‘ on GitHub, but initial commit failed:

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

看了一下错误原因:Run git config --global user.email "[email protected]" git config --global user.name "

原来是github没有配置的原因,解决办法如下。 
1. 在你安装Git的目录下找到git-bash这个可执行文件 
2. 设置用户名和邮箱地址,如下图:

$ git config --global user.name "your name"
$ git config --global user.email "[email protected]"

以上是关于解决上传到github报错Successfully created project 'autotest' on GitHub, but initial commit failed:(示的主要内容,如果未能解决你的问题,请参考以下文章

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

解决上传代码到GitHub报错Push rejected: Push to origin/master was rejected

第一次上传代码到github上

spring boot 使用java9上传到github其他人clone后报错

Inspector did not run successfully.

No PostCSS Config found in报错解决