解决上传到github报错Successfully created project 'Demo' on GitHub, but initial commit failed:
来源:互联网 发布:乐视mac 编辑:程序博客网 时间:2024/04/29 19:39
今天博主正在愉快地学习在AndroidStudio中使用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运行后输入下面两行代码即可:
- git config --global user.email "you@example.com"
- git config --global user.name "Your Name"
–>路要一步一步走,记住自己走过的路,不再犯同样的错误,才是真正的成长!欢迎指点、交流。<–
如果觉得本篇博客解决了你的困惑,还请你顶下文章,或者微信扫描下方二维码,打赏下博主,感激你的支持。
1 1
- 解决上传到github报错Successfully created project 'Demo' on GitHub, but initial commit failed:
- 解决上传到github报错Successfully created project 'Demo' on GitHub, but initial commit failed:
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote re
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote re
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote re
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote re
- 解决 Successfully created project '' on GitHub, but initial push failed: Could not read from remote
- Successfully created project ” on GitHub, but initial push failed: Could not read from remote
- 解决Can’t finish GitHub sharing process Successfully created project ‘GitHubDemo’ on GitHub
- 解决android studio 利用git向github上传代码时遇到的Can’t finish GitHub sharing process Successfully created projec
- GitHub commit failed
- 半小时学会上传本地项目到github 及 github提交报错failed to add file / to index解决办法
- 半小时学会上传本地项目到github 及 github提交报错failed to add file / to index解决办法
- 如何上传自己的project到github
- 使用git将项目上传到github 以及解决“git commit -m”初始化问题
- github commit 报错:error: failed to push some refs to 'https:'错误解决方法
- POJ 1679 The unique MST [次小生成树]
- Java中为什么要使用单例模式
- C#入门7.9——ArrayList类中元素的添加
- ABAP中的系统变量SY-INDEX与SY-TABIX
- 使用getid3插件获取文件播放时间
- 解决上传到github报错Successfully created project 'Demo' on GitHub, but initial commit failed:
- alert()实现原理的探索!(c++底层机制我也不懂啊!)
- rf中解析utf-8格式的中文转换
- Oracle 中重新编译无效的存储过程, 或函数、触发器等对象
- 判断日期的先后
- 多线程基础
- Cocos2d-x的学习 触碰事件老版本和新版本的对比 第一节
- sql 插入一条记录并查询出记录的id值
- 防止快速重复点击的代码