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