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

最新文章

  1. css选择器
  2. sphinx索引分析——文件格式和字典是double array trie 检索树,索引存储 – 多路归并排序,文档id压缩 – Variable Byte Coding
  3. 应用 CSS3 动画实现12种风格的通知提示
  4. 《高性能MySQL》读书笔记--锁、事务、隔离级别 转
  5. HDU 4251 --- 主席树(划分树是正解)
  6. dig与dns基本理论——解析和缓存
  7. rubycas-client单点登录
  8. DevExpress gridView 小结(一)
  9. 用Ajax去读取服务器端的XML格式的数据
  10. 转载: js jquery 获取当前页面的url,获取frameset中指定的页面的url(有修改)
  11. nginx 实现Web应用程序的负载均衡
  12. 解决网络通信中外网和内网之间的通信问题(NAT转换)
  13. Gradle sync failed 异常
  14. linux ngix安装
  15. UIScrollView的无限左滑轮播一点也不难
  16. Xmanager6 下载地址
  17. HBase数据库配置中各配置项的释义及默认值
  18. s6 传输层
  19. linux系统下saltstack的安装和配置
  20. 【bzoj 2588】Spoj 10628. Count on a tree

热门文章

  1. Spring Data JPA 进阶
  2. 报错: The type ByteInputStream is not accessible due to restriction on required library
  3. 【甘道夫】并行化频繁模式挖掘算法FP Growth及其在Mahout下的命令使用
  4. 小贝_mysql数据库备份与恢复
  5. 第一个get请求的爬虫程序
  6. Spring Boot集成MyBatis与分页插件
  7. 谈谈对redux的认识
  8. android stdio 异常
  9. Java正则表达式的用法
  10. RJ45接口定义及网线线序