在使用git对源代码进行push的到github时,可能会出现错误,如下图所示

出现错误的主要原因是github中的README.md文件不在本地代码目录中

可以通过如下命令进行代码合并【注:pull=fetch+merge]

执行上面代码后可以看到本地代码库中多了README.md文件

此时再执行语句 git push -u origin master即可完成代码上传到github

解决 error: failed to push some refs to ‘https://github.com/mxp520/test-spring-cloud-base.git‘相关推荐

  1. 解决error: failed to push some refs to 'https://github.com/Dongyaxin-ai/learngit.git'

    问题 在git bash 中键入git push -u origin master 进行提交的时候出现 如下错误 error: failed to push some refs to 'https:/ ...

  2. 【GIT】error: failed to push some refs to 'https://github.com/username/python.git'

    error: failed to push some refs to 'https://github.com/username/python.git' 解决error: failed to push ...

  3. git 提交时报错 error: failed to push some refs to ‘https://github.com/xxx/demo.git 解决方法

    1. 前言 本文解决由于git 处于游离状态下不能提交代码的问题.文章由导致原因,解决方法和思考三个内容组成. 2. 问题复现 我们从远程仓库 clone 代码下来,进行需求开发,可能进行了以下步骤. ...

  4. 完美解决:error: failed to push some refs to 'https://github.com/xxxx.git'

    完美解决:error: failed to push some refs to 'https://github.com/xxxx.git' 1.强制push本地仓库到远程 (这种情况不会进行merge ...

  5. 解决办法:git错误 error: failed to push some refs to 'https://github.com/...

    问题描述: 今天在git bash中键入 $ git push origin master 进行提交的时候出现出现了 如下错误: ! [rejected] master -> master (n ...

  6. 解决办法:git错误 error: failed to push some refs to ‘https://github.com/...

    问题描述:在git bash中键入 $ git push 进行提交的时候出现错误 error: failed to push some refs to 'https://github.com/blue ...

  7. 解决办法:error: failed to push some refs to 'https://github.com/xxxx.git'

    在github远程创建仓库后, 利用gitbash进行提交本地文件的时候出现如下错误: [root@foundation38 demo]# git push -u origin master User ...

  8. Git提交数据失败 error: failed to push some refs to 'https://github.com/XXXXXXX/gif.git'

    附载码云的使用教程地址:http://www.jianshu.com/p/084e0aabbab3 问题一:执行Git remote add origin https://github.com/XXX ...

  9. 在github上传项目时error: failed to push some refs to 'https://github.com/...

    push时出现error: failed to push some refs to 'https://github.com/...这个错误. 出错原因主要是GitHub中README.md文件不在本地 ...

最新文章

  1. 肠里细菌“肚里蛔虫”:肠脑研究缘何越来越热
  2. Simple Python Dictionary :)
  3. 开发和使用Web用户控件
  4. Python 中的作用域
  5. 从Hadoop框架与MapReduce模式中谈海量数据处理(含淘宝技术架构)
  6. Android应用中Back键的监听及处理
  7. 上传文件ajax,ajax 文件上传
  8. php分页类smary,Smarty分页实现方法完整实例
  9. QT:创建一个widget,包含源文件,头文件,以及ui文件
  10. vulkan sdk 下载地址
  11. 公摊面积用计算机怎么计算,公摊面积计算(公摊面积计算器)
  12. 网络安全——sql注入漏洞拓扑图
  13. 关于实习、校招的科普
  14. 最小生成树算法 | Kruskal’s Minimum Spanning Tree Algorithm
  15. 在Vue中 用trun js + pdf-dist 实现pdf翻页效果
  16. 单海军:行业AI平台赋能金融企业数智化转型
  17. Android之获取手机IMEI号和IMSI号
  18. 不发短信获取短信中心号
  19. 网易邮箱恢复服务器上删除邮件吗,网易企业邮箱普通邮箱删除邮件找回
  20. 【48. 贪心(区间选点)】

热门文章

  1. POJ 2657 Comfort
  2. 根据灰度直方图调整图象亮度
  3. 效率工具篇 — 密码管理器 1Password 2020/5/27 21:09
  4. 文件系统之super_block
  5. 【远程桌面软件RustDesk】开源远程控制神器!RustDesk为开源虚拟与远程桌面基础架构,也支持网页版,TeamViewer 和向日葵的替代品
  6. 网络 -- TCP三次握手和四次挥手
  7. 循环结构中“当型”与“直到型”判断的理解
  8. SurfaceView 加速 开启硬件加速
  9. PMP第6章知识点回顾,练习题
  10. SpringBoot+Vue项目在线视频教育平台