首页 > Web开发 > 详细

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

时间:2018-01-20 23:15:28      阅读:400      评论:0      收藏:0      [点我收藏+]

通过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 "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 "

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

$ git config --global user.name "your name"
$ git config --global user.email "your_email@youremail.com"

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

原文:https://www.cnblogs.com/greattao/p/8322195.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!