问题

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

解决

1、切换到主分支(或者被依赖的分支,也就是你从哪一个分支上拉取新的分支)

git checkout master

2、执行命令初始化仓库分支

git init
git pull

3、切换到新的分支

git checkout main

4、执行提示的命令

git branch --unset-upstream

5、执行命令

git push origin master
git pull

6、执行命令

git branch --set-upstream-to=origin

git提交报configuration specifies to merge with the ref ‘’refs/heads/master‘相关推荐

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

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

  2. 【git】Your configuration specifies to merge with the ref ‘refs/heads/xxx

    执行一下 git status,会发现 On branch xxx Your branch is based on 'origin/yyy', but the upstream is gone. (u ...

  3. 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 ...

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

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

  5. 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 今天使用 ...

  6. 【Git】Git commit至Gitee报错‘remote: error: hook declined to update refs/heads/master‘的解决方法

    Git commit至Gitee报错'remote: error: hook declined to update refs/heads/master'的解决方法 进入到Gitee的邮箱管理中,取消勾 ...

  7. 【Git删除大文件失败,提示WARNING: Ref ‘refs/heads/master‘ is unchanged的解决思路】

    1. 问题描述 最近使用Gitee一直在独立开发某个项目,某次因为某个测试文件比较大,超过了100MB,gitee无法接受,上传失败.但是当时我没有发现上传失败,就没有处理,等到今天发现的时候,已经提 ...

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

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

  9. Git commit至Gitee报错‘remote: error: hook declined to update refs/heads/master‘的解决方法

    进入到Gitee的邮箱管理中,取消勾选禁止命令行推送暴露个人邮箱

最新文章

  1. 撤消尚未推送的Git合并
  2. 从零到两百台服务器的创业野蛮生长史
  3. 计算机课堂有趣的游戏,有趣的课堂游戏作文9篇
  4. python 调用linux命令-Python调用Linux bash命令
  5. [ORGINAL]OOP Panel control design(based on web )
  6. jedisPool.getResource()方法长时间无响应并且不报错
  7. 严重红色警告-虾子+维C=砒霜
  8. 汇编语言-009(表驱动选择 、条件控制流伪指令 、逻辑移位SHL,SHR 算术移位SAL,SAR)
  9. BIEE叙述图导航实例
  10. 功能实施方案,不能由程序员做主,一定要经过高手确认
  11. python常用运维脚本实例-经典!Python运维中常用的几十个Python运维脚本
  12. 有趣的设计模式——两脚插头也能使用三孔插板
  13. xp计算机启动检测硬盘,winxp系统如何设置开机自检修复硬盘
  14. 腾讯视频下载的视频怎么导出来_手机腾讯视频怎么缓存视频电影
  15. java 花卉管理系统_基于jsp的花卉交易-JavaEE实现花卉交易 - java项目源码
  16. 【HTML粒子流特效】(效果 + 代码)
  17. php读取excel并导入数据,PHPExcel读取excel并导入数据库
  18. 苏州源特VPT87DDF01B 隔离变压器 小体积/SMD/3000VDC 隔离
  19. linux+bypy 定时上传到百度云盘
  20. 德国银行继续对数字货币持观望态度

热门文章

  1. 湿敏电阻的规格型号和用途总结
  2. 嵌入式开发从入门到精通之第二十五节:IPMSG协议
  3. 计算机网络——ARPANET设计思想
  4. MATLAB 第9章 图形对象
  5. 扒开python,看透python的内在,python的应用领域
  6. 软件测试--详细判断电话号码
  7. Win10怎么设置文件夹密码|Win10不压缩文件夹设置密码
  8. 计算机毕业设计ssm超市管理系统2178w系统+程序+源码+lw+远程部署
  9. 黑龙江省大兴安岭地区谷歌高清卫星地图下载
  10. PXE网络安装已经无人值守安装教程