当前位置: 首页 > news >正文

git cherry-pick 合并多个提交

/* 多提交合并 */
将 flymap4 多个提交合并到 b_flymap4_202508

git checkout b_flymap4_202508
git lg flymap4                          // 5178ae4b .. e7980ec5, 共四个

git cherry-pick 5178ae4b^ .. e7980ec5

    Performing inexact rename detection: 100% (442092/442092), done.
    Auto-merging Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.cpp
    CONFLICT (content): Merge conflict in Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.cpp
    error: could not apply 5178ae4b... [Mod] 抽一帧存JPG照片
    hint: after resolving the conflicts, mark the corrected paths
    hint: with 'git add <paths>' or 'git rm <paths>'
    hint: and commit the result with 'git commit'

git status

    On branch b_flymap4_202508
    Your branch is up to date with 'origin/b_flymap4_202508'.

    Cherry-pick currently in progress.
      (fix conflicts and run "git cherry-pick --continue")
      (use "git cherry-pick --skip" to skip this patch)
      (use "git cherry-pick --abort" to cancel the cherry-pick operation)

    Changes to be committed:
            modified:   Hardware/Hi3519Cam/CMakeLists.txt
            new file:   Hardware/Hi3519Cam/PhotoSnap/FlymapControl.cpp
            modified:   Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.h
            new file:   Hardware/Hi3519Cam/PhotoSnap/flymap_vsync.h

    Unmerged paths:
      (use "git add <file>..." to mark resolution)
            both modified:   Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.cpp

vi Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.cpp
git add Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.cpp
git cherry-pick --continue

    [Mod] 抽一帧存JPG照片
      
    Change-Id: Id1369da2b4b044039fb801dd935c26b6a60ce077

    /* 解决冲突时删除上面的即可 */
    # Conflicts:    
    #       Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.cpp
    #
    # It looks like you may be committing a cherry-pick.
    # If this is not correct, please remove the file
    #       .git/CHERRY_PICK_HEAD
    # and try again.


    # Please enter the commit message for your changes. Lines starting
    # with '#' will be ignored, and an empty message aborts the commit.
    #
    # Date:      Mon Aug 12 13:58:40 2024 +0800
    #
    # On branch b_flymap4_202508
    # Your branch is up to date with 'origin/b_flymap4_202508'.
    #
    # Cherry-pick currently in progress.
    #
    # Changes to be committed:
    #       modified:   Hardware/Hi3519Cam/CMakeLists.txt
    #       new file:   Hardware/Hi3519Cam/PhotoSnap/FlymapControl.cpp
    #       modified:   Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.cpp
    #       modified:   Hardware/Hi3519Cam/PhotoSnap/PhotoSnap_Impl.h
    #       new file:   Hardware/Hi3519Cam/PhotoSnap/flymap_vsync.h

git cherry-pick --continue

    [b_flymap4_202508 1e50d2bc] [Mod] 增加 MessageBus 头文件与源码路径,以处理合并后编译报找不到头文件的异常
     Date: Fri Aug 23 11:41:51 2024 +0800
     1 file changed, 4 insertions(+), 3 deletions(-)

git status

    On branch b_flymap4_202508
    Your branch is ahead of 'origin/b_flymap4_202508' by 4 commits.
      (use "git push" to publish your local commits)

    nothing to commit, working tree clean

git push origin HEAD:refs/for/b_flymap4_202508

相关文章:

  • 北京网站建设多少钱?
  • 辽宁网页制作哪家好_网站建设
  • 高端品牌网站建设_汉中网站制作
  • Go 调用Rust函数
  • 浅谈线性表——链表
  • AI编程简介
  • 【第69课】Java安全JWT攻防Swagger自动化算法签名密匙Druid未授权
  • java-Mybatis框架
  • MFC程序设计(一) MFC框架
  • 23种设计模式详细知识点(软件设计师)
  • 【工控】线扫相机小结
  • Linux编程:使用 CSV 与 UnQLite 进行数据存储的比较分析
  • Java中‘==’ 和 equals()的区别
  • GeoScene Pro教程(001):软件功能产品介绍
  • Win11配置Pytorch深度学习环境(GPU版本)
  • 鸿蒙HarmonyOS实战:IPC与RPC设备内进程通信
  • 【ROS2】launch启动文件:基础
  • pyyaml:Python 中的 YAML 处理大师
  • 【402天】跃迁之路——程序员高效学习方法论探索系列(实验阶段159-2018.03.14)...
  • httpie使用详解
  • IndexedDB
  • Koa2 之文件上传下载
  • Sass 快速入门教程
  • scala基础语法(二)
  • SQLServer之创建显式事务
  • 分享一份非常强势的Android面试题
  • 海量大数据大屏分析展示一步到位:DataWorks数据服务+MaxCompute Lightning对接DataV最佳实践...
  • 你不可错过的前端面试题(一)
  • 普通函数和构造函数的区别
  • 我的zsh配置, 2019最新方案
  • 7行Python代码的人脸识别
  • 如何在招聘中考核.NET架构师
  • ​你们这样子,耽误我的工作进度怎么办?
  • (AtCoder Beginner Contest 340) -- F - S = 1 -- 题解
  • (C++)栈的链式存储结构(出栈、入栈、判空、遍历、销毁)(数据结构与算法)
  • (java版)排序算法----【冒泡,选择,插入,希尔,快速排序,归并排序,基数排序】超详细~~
  • (TipsTricks)用客户端模板精简JavaScript代码
  • (差分)胡桃爱原石
  • (附源码)spring boot火车票售卖系统 毕业设计 211004
  • (九)One-Wire总线-DS18B20
  • (十六)视图变换 正交投影 透视投影
  • (游戏设计草稿) 《外卖员模拟器》 (3D 科幻 角色扮演 开放世界 AI VR)
  • (原創) 如何動態建立二維陣列(多維陣列)? (.NET) (C#)
  • (转)为C# Windows服务添加安装程序
  • .mat 文件的加载与创建 矩阵变图像? ∈ Matlab 使用笔记
  • .net core 使用js,.net core 使用javascript,在.net core项目中怎么使用javascript
  • .NET Core中如何集成RabbitMQ
  • .Net Remoting(分离服务程序实现) - Part.3
  • .net 流——流的类型体系简单介绍
  • .net和jar包windows服务部署
  • .NET建议使用的大小写命名原则
  • .NET使用存储过程实现对数据库的增删改查
  • @KafkaListener注解详解(一)| 常用参数详解
  • [30期] 我的学习方法
  • [8-23]知识梳理:文件系统、Bash基础特性、目录管理、文件管理、文本查看编辑处理...
  • [AI 大模型] 百度 文心一言
  • [C/C++]数据结构 栈和队列()
  • [C++][STL源码剖析] 详解AVL树的实现