当前位置: 首页 > 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

http://www.dtcms.com/a/11852.html

相关文章:

  • Linux系统性能调优详细讲解和案例示范
  • 数据结构-队列
  • Unity动画模块 之 动画层混合
  • 新版本 | GreatSQL 8.0.32-26全新发布 增强“四高”诸多新特性
  • 鸿蒙笔记--触摸事件
  • 【计算机网络】网络基础
  • PAM软连接提权
  • 【HarmonyOS NEXT星河版开发学习】综合测试案例-各平台评论部分
  • 单片机驱动彩屏最简方案:单片机_RA8889最小开发板驱动控制TFT彩屏介绍(二)硬件电路设计
  • 一文解决---IDEA汉化问题(含中英文切换)
  • 基于单片机的教室人数自动统计系统设计
  • Spring Boot整合Sentry
  • 九:《Python基础语法汇总》— 模块异常处理
  • k8s 进阶实战笔记 | Ingress-traefik(一)
  • 编译运行 llama.cpp (vulkan, Intel GPU SYCL)
  • 22 Message 组件
  • NRC-SIM:基于Node-RED的多级多核缓存模拟器
  • Python爬虫——简单网页抓取(实战案例)小白篇
  • 深度学习——超大病理图像mask的保存与读取
  • flutter 中 ssl 双向证书校验
  • uniapp检测手机是否打开定位权限Vue3-直接复制粘贴
  • 实现Kruskal算法连通游戏地图地牢
  • 设计模式 3 单例模式
  • JAVA后端程序拉取私人仓库的npm包并将该程序打包成jar包
  • XSS DOM破坏实战案例
  • 基于x86 平台opencv的图像采集和seetaface6的人脸跟踪功能
  • 设备运维故障排查与修复技巧
  • 笔记本一线品牌有哪些
  • 【数据结构】数据结构 知识回顾
  • Java实现三方登录---微信登录