git提交报configuration specifies to merge with the ref ‘’refs/heads/master‘
问题
建立新的分支,当咱们执行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‘相关推荐
- git pull 时候报错Your configuration specifies to merge with the ref ‘refs/heads/master‘ from the remote,
使用vscode 拉代码报错,可以先在创建仓库的时候 点击 初始化readme文件再下拉代码 即可
- 【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 ...
- 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 ...
- Your configuration specifies to merge with the ref ‘refs/hea
pod repo push 的时候遇到这个问题如图 执行pod repo push LBBRollingView /Users/liubo/Desktop/LBRollingView/LBRollin ...
- 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 今天使用 ...
- 【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的邮箱管理中,取消勾 ...
- 【Git删除大文件失败,提示WARNING: Ref ‘refs/heads/master‘ is unchanged的解决思路】
1. 问题描述 最近使用Gitee一直在独立开发某个项目,某次因为某个测试文件比较大,超过了100MB,gitee无法接受,上传失败.但是当时我没有发现上传失败,就没有处理,等到今天发现的时候,已经提 ...
- git 报错:Your configuration specifies to merge with the ref
由于git分支名字拼写错误,需要将git分支改名 本地仓库改名:git branch -m oldName newName 删除远程分支:git push --delete origin/oldNam ...
- Git commit至Gitee报错‘remote: error: hook declined to update refs/heads/master‘的解决方法
进入到Gitee的邮箱管理中,取消勾选禁止命令行推送暴露个人邮箱
最新文章
- 撤消尚未推送的Git合并
- 从零到两百台服务器的创业野蛮生长史
- 计算机课堂有趣的游戏,有趣的课堂游戏作文9篇
- python 调用linux命令-Python调用Linux bash命令
- [ORGINAL]OOP Panel control design(based on web )
- jedisPool.getResource()方法长时间无响应并且不报错
- 严重红色警告-虾子+维C=砒霜
- 汇编语言-009(表驱动选择 、条件控制流伪指令 、逻辑移位SHL,SHR 算术移位SAL,SAR)
- BIEE叙述图导航实例
- 功能实施方案,不能由程序员做主,一定要经过高手确认
- python常用运维脚本实例-经典!Python运维中常用的几十个Python运维脚本
- 有趣的设计模式——两脚插头也能使用三孔插板
- xp计算机启动检测硬盘,winxp系统如何设置开机自检修复硬盘
- 腾讯视频下载的视频怎么导出来_手机腾讯视频怎么缓存视频电影
- java 花卉管理系统_基于jsp的花卉交易-JavaEE实现花卉交易 - java项目源码
- 【HTML粒子流特效】(效果 + 代码)
- php读取excel并导入数据,PHPExcel读取excel并导入数据库
- 苏州源特VPT87DDF01B 隔离变压器 小体积/SMD/3000VDC 隔离
- linux+bypy 定时上传到百度云盘
- 德国银行继续对数字货币持观望态度