执行一下 git status,会发现 On branch xxx Your branch is based on 'origin/yyy', but the upstream is gone. (use "git branch --unset-upstream" to fixup),可以根据提示执行该命令,然后再执行 git push --set-upstream origin xxx 即可。

回头解释一下: 出现此类问题是由于你修改了本地分支 xxx -> yyy,然后你又修改了远程的 xxx -> yyy,由于配置文件进行了配置,则此时本地的 yyy 也会将代码提交到远程的 xxx 中,但是远程的 xxx 已经被你修改掉了,不存在了,所以才会出现这个提交错误。解决办法就是解绑然后重新绑定新的远程分支即可。

【git】Your configuration specifies to merge with the ref ‘refs/heads/xxx相关推荐

  1. git提交报configuration specifies to merge with the ref ‘’refs/heads/master‘

    问题 建立新的分支,当咱们执行git pull,出现以下错误git configuration specifies to merge with the ref ''refs/heads/master' ...

  2. Your configuration specifies to merge with the ref ‘refs/heads/develop‘from the remote, but no such

    git pull的时候报错: Your configuration specifies to merge with the ref 'refs/heads/develop' from the remo ...

  3. 【Git】创建分支报错(cannot lock ref ‘refs/heads/***/***‘)

    本周刚遇到的问题,创建新分支的时候,报错信息如下: cannot lock ref 'refs/heads/***/***': 'refs/heads/***' exists; cannot crea ...

  4. git pull 时候报错Your configuration specifies to merge with the ref ‘refs/heads/master‘ from the remote,

    使用vscode 拉代码报错,可以先在创建仓库的时候 点击 初始化readme文件再下拉代码 即可

  5. Your configuration specifies to merge with the ref ‘refs/hea

    pod repo push 的时候遇到这个问题如图 执行pod repo push LBBRollingView /Users/liubo/Desktop/LBRollingView/LBRollin ...

  6. Your configuration specifies to merge with the ref from the remote, but no such ref was fetched

    Your configuration specifies to merge with the ref from the remote, but no such ref was fetched 今天使用 ...

  7. git 报错:Your configuration specifies to merge with the ref

    由于git分支名字拼写错误,需要将git分支改名 本地仓库改名:git branch -m oldName newName 删除远程分支:git push --delete origin/oldNam ...

  8. git pull 报错Your configuration specifies to merge with the XXX from the remote, but no such ref was..

    翻译过来的大致意思是: 你的配置指定与ref 'XXX'合并 从远程,但没有这样的引用. 打开.git文件夹 打开config文件 [branch "master"]remote ...

  9. 【git】git操作命令和相关脚本

    目录 git clone git checkout git diff git add git pull --rebase git pull git fetch git reset git stash ...

最新文章

  1. 为什么一定要前后端分离?
  2. 静默安装oracle11.2.0.4
  3. 电脑入门基础教程_ARM入门最好的文章------转载一位资身工程师的入门心得
  4. Android 代码实现查看SQLite数据库中的表
  5. 前端学习(3170):react-hello-react之实现底部功能
  6. 【剑指offer】面试题34:二叉树中和为某一值的路径(Java)
  7. Linux系统资源控制
  8. PID算法的EXCEL模拟实现
  9. latex缩进与对齐_科学网—Latex算法排版,不同行缩进不同 - 张鹏的博文
  10. 打开带图片的EXCEL文档反应慢 案例解析
  11. 海康SDK/Ehome协议/RTSP协议/GB28181安防视频云服务EasyCVR前端音频采集流程介绍
  12. 安装虚拟机不支持i686 cpu的解决办法
  13. 获取 rabbitmq 实时数据
  14. 「首席架构师推荐」数值分析软件列表
  15. MYSQL根据经纬度查询最近距离
  16. 【PR】调整音频的声音从大到小
  17. 已拿 offer!一个非 985/211 的普通二本学生从毕业季到职场的面经分享!
  18. 哥德巴赫猜想python版
  19. java时间代码_java处理日期时间代码
  20. 【POI每日题解 #5】 DWU-Double-row

热门文章

  1. JAVA类与对象构造方法,java基础-1-面向对象(1)-概念介绍与类、对象、构造方法...
  2. 原来DateTime? 和DataTime的区别不只是可否为空
  3. 定时任务(Spring与Quartz使用)
  4. 教你用福昕PDF转换器将手机图片转PDF文档
  5. ReadFile函数
  6. 小米node2红外_关于小米人体传感器2的抢先体验报告
  7. 游戏地图编辑器,JAVA版简单实现
  8. 面试:Hook框架Xposed、Dexposed、Epic原理
  9. JAVA求是否能够构成内切圆_Java编程 如何计算三角形的内切圆半径?
  10. Openfire漏洞(CVE-2019-18393/18394)