V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Pantheoon
V2EX  ›  问与答

git 合错代码的问题

  •  
  •   Pantheoon · Jun 28, 2023 · 1516 views
    This topic created in 1036 days ago, the information mentioned may be changed or developed.

    问题是这样, 我们有一个 feature/0630 的分支,并行开发的是一个 feature/0704 的分支.测试分支是 test,昨天突然发现 feature/0630 上面有 0704 的代码,但是这这两个分支没有合并过,12 号一个小伙伴把 feature/0704 分支合到 test 后,feature/0630 就开始有 0704 的代码,很奇怪,操作都是常规操作,直接 merge,有没有遇到过的小伙伴?

    lalalaqwer
        1
    lalalaqwer  
       Jun 28, 2023   ❤️ 1
    有人撒谎啦
    DataSheep
        2
    DataSheep  
       Jun 28, 2023 via iPhone
    二楼破案
    xylitolLin
        3
    xylitolLin  
       Jun 28, 2023
    赞同 2 楼
    wu00
        4
    wu00  
       Jun 28, 2023   ❤️ 1
    创建 feature 分支时是基于远程分支创建的,并且追踪了远程分支
    Pantheoon
        5
    Pantheoon  
    OP
       Jun 28, 2023
    @lalalaqwer 看 git log 确实很奇怪,0630 没有 0704 的代码提交记录,只有一次 0704 合进 test 的记录
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:10 · PVG 06:10 · LAX 15:10 · JFK 18:10
    ♥ Do have faith in what you're doing.