文章目录

  • 一、报错信息
  • 二、解决方案

一、报错信息


执行

git branch -d feature1

命令 , 删除 feature1 分支 , 报如下错误 :

D:\Git\git-learning-course>git branch -d feature1
error: The branch 'feature1' is not fully merged.
If you are sure you want to delete it, run 'git branch -D feature1'.

二、解决方案


出现上述原因 , 是因为 feature1 分支创建后 , 没有进行合并 , 报上述错误 , 提示开发者是否要进行合并之后 , 再删除这个分支 ;

看到这个提示后 , 开发者应该去考虑是否要进行合并 , 如果要合并 , 执行 分支合并 操作 , 然后就可以顺利的使用

git branch -d feature1

命令 , 删除分支 ;

如果不想合并这个分支 , 可以考虑使用

git branch -D feature1

命令 , 强行删除该 feature1 分支 ;

执行过程 :

D:\Git\git-learning-course>git branch -D feature1
Deleted branch feature1 (was c911a5d).D:\Git\git-learning-course>

【错误记录】Git 使用报错 ( error: The branch ‘feature1‘ is not fully merged. )相关推荐

  1. 【错误记录】Git 使用报错 ( error: Cannot delete branch ‘dev‘ checked out at ‘D:/Git/git-learning-course‘)

    文章目录 一.报错信息 二.解决方案 一.报错信息 使用 Git 操作 版本库 , 删除分支时 , 报如下错误 : D:\Git\git-learning-course>git branch - ...

  2. git使用报错:fatal: Couldn't find remote ref master的解决方法

    git使用报错:fatal: Couldn't find remote ref master的解决方法 fatal: Couldn't find remote ref master 翻译过来就是:致命 ...

  3. git使用报错: fatal: Couldn‘t find remote ref master的解决方法

    git使用报错: fatal: Couldn't find remote ref master的解决方法 参考文章: (1)git使用报错: fatal: Couldn't find remote r ...

  4. git使用报错:fatal: Couldn‘t find remote ref master的解决方法

    git使用报错:fatal: Couldn't find remote ref master的解决方法 参考文章: (1)git使用报错:fatal: Couldn't find remote ref ...

  5. 【错误记录】Git 使用报错 ( git branch -a 仍能查询到已经删除的远程分支 )

    文章目录 一.报错信息 二.解决方案 一.报错信息 之前已经执行 git push origin --delete feature1 命令 , 删除了 feature1 远程分支 , 删除操作成功 , ...

  6. 【错误记录】Git 使用报错 ( git: ‘switch‘ is not a git command. See ‘git --help‘. )

    文章目录 一.报错信息 二.解决方案 一.报错信息 执行 git switch -c feature1 命令 , 创建分支 , 报如下错误 : D:\Git\git-learning-course&g ...

  7. 【错误记录】Git 使用报错 ( no changes added to commit (use “git add“ and/or “git commit -a“) )

    文章目录 一.报错信息 二.解决方案 一.报错信息 修改了 Git 版本库中的 file1.txt 文件 , 直接执行 git commit -m "modify file1" 命 ...

  8. 日常开发中,你需要掌握的git使用报错解决

    1.不允许将代码推送到该项目上受保护的分支 - 问题发生: remote: GitLab: You are not allowed to push code to protected branches ...

  9. jmeter使用报错ERROR o.a.j.JMeter: Uncaught exception in thread Thread[AWT-EventQueue-0,6,main]

    最近开始自学接触jmeter,但是在跑接口的时候发现报错了(接口使用postman已经跑通过,在自查一通以后终于发现原因) 先上错误提示:我们主要先看error,可以看到ERROR o.a.j.JMe ...

最新文章

  1. 中国国际消费电子博览会拥抱转型,全新面貌拭目以待!
  2. PHP运算符与表达式
  3. 运算放大器在强电磁干扰下会出现什么变化?
  4. CodeForces-1294B排序+pair使用
  5. 《大话数据结构》第9章 排序 9.3 冒泡排序(下)
  6. boost::multiprecision模块complex128相关的测试程序
  7. ABAP Netweaver体内的那些寄生式编程语言
  8. 使用双重循环,输出数字金字塔
  9. 帝国 loginjs.php,帝国cms 6.6 后台拿shell
  10. UVa 11468 (AC自动机 概率DP) Substring
  11. [Android Pro] 告别编译运行 ---- Android Studio 2.0 Preview发布Instant Run功能
  12. 【BZOJ2049,2631,3282,1180】LCT模板四连A
  13. 怎样将iphone照片通过MAC导入移动硬盘?
  14. Codeforces1389E Calendar Ambiguity(数学)
  15. 哈佛,斯坦福和麻省理工学院等投资加密货币基金
  16. 编译问题追踪 :Connect to maven.google.com:443 [maven.google.com/172.217.160.110] failed: Connection timed
  17. druid数据源下 sqlserver 出现 对象名 'xxx' 无效
  18. 家用路由器AP模式设置
  19. 职场新人如何成为沟通高手
  20. OpenAI Codex、DeepMind AlphaCode论文精读阅读笔记

热门文章

  1. Linux指令和对应的英文全称,Linux单横杠和双横杠的区别
  2. eclipes代码提示及防空格自动补全
  3. 【Keras+计算机视觉+Tensorflow】OCR文字识别实战(附源码和数据集 超详细必看)
  4. 如何在基于vue-cli的项目中,使用精灵图 css sprite
  5. Wifite.py 修正版脚本代码
  6. Arcgis中图像裁剪
  7. 6个部件组成一个圆球_【魔方拼装详细步骤】六块积木如何拼个球体
  8. 旋转矩阵中6保6_双色球旋转矩阵(9-12)个号中6保5公式
  9. 自控原理学习笔记-系统稳定性分析(2)-环路分析及Nyquist-Bode判据
  10. 阿里云-个人建网站从0到精通(一)