Git 提交时报错 error: failed to push some refs to 'https://github.com/yibin94/shop.git'
来源:互联网 发布:h3c网络管理软件 编辑:程序博客网 时间:2024/06/06 07:09
使用 git 提交本地项目到 github 还是刚尝试,这是第二次,然后因为我把之前第一次提交的本地仓库文件夹 .git 删除了以及将项目全部清空再放入新的版本,结果到 git push 操作时就报错:
一开始很纳闷,感觉是我之前删了 .git 本地仓库文件夹导致的,结果百度之后发现是 README.md 文件没拷贝到本地项目上,导致的错误。。。于是跟着敲几句命令,果然成功解决!!!
结果你的本地项目就会多一个 README.md 文件如下:
再根据提示 git push 命令即可:
再去 github 上看就会发现更新了这次 commit 即成功了。
阅读全文
0 0
- Git 提交时报错 error: failed to push some refs to 'https://github.com/yibin94/shop.git'
- Git提交数据失败 error: failed to push some refs to 'https://github.com/XXXXXXX/gif.git'
- error: failed to push some refs to 'git@github.com:
- git - error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git' 解决办法
- git push报错error: failed to push some refs to 'git@github.com:
- git push报错error: failed to push some refs to 'git@github.com:
- 【git push报错error: failed to push some refs to 'git@github.com】
- git push报错error: failed to push some refs to 'git@github.com:
- error: failed to push some refs to 'https://github.com/.....'
- github 提交代码 failed to push some refs to git
- 在github上传项目遇到的问题(error: failed to push some refs to 'https://github.com/CrazyDony/text.git')
- failed to push some refs to 'git@github.com怎么办
- 解决git error: failed to push some refs to 'git@github.com:
- error: failed to push some refs to 'git@github.com:GoodMemery/mytest.git'
- error: failed to push some refs to 'git@github.com:yourname/repositoryname.git'
- error: failed to push some refs to git@github.com:damononliu/cv_python.git
- 提示git error: failed to push some refs to 'git@github.com:
- git push 时报错error: failed to push some refs to ...
- <C++>13.构造函数和析构函数的调用顺序
- xdoj 1019 自然数的秘密
- 洛谷P1144 最短路计数(BFS)
- MQTT客户端QT的配置
- 九度OJ剑指Offer题目1515:打印1到最大的N位数
- Git 提交时报错 error: failed to push some refs to 'https://github.com/yibin94/shop.git'
- MAVEN项目标准目录结构
- CV实习一周小记
- 201710030245->TimerMgr中对所有Timer进行管理
- ROS01-基础知识-安装
- ROS02-基础知识-原理
- PGP wrong in archlinux
- 《熔炉》 观后感 --韩国电影
- 正式入坑的第一日 知道了什么是自学