簡體   English   中英

父分支在子分支之前合並開發的情況如何處理?

[英]How to deal with the situation that the parent branch was merged to develop before a child branch?

我的同事在 20 天前創建了 feature-parent-branch,我在 15 天前使用git town創建了 feature-child-branch。 然后他在 12 天前將 feature-parent-branch 合並到了 development 分支。 然后我在 2 天前完成了我的票,我使用git town將 feature-child-branch 合並到 feature-parent-branch 。

但是,我發現 feature-parent-branch 和 develop 之間大約有 50 個文件差異。

當我處理工單時,主分支是 git 城鎮配置中的 feature-parent-branch。

我不確定最近的 PR 是否更改了這 50 個文件。 有沒有一種安全的方法來合並我的代碼以從功能父分支開發?

太感謝了!

現在,如果基於 feature-parent-branch 創建 feature-child-branch 而 feature-parent-branch 被合並以早於 feature-child-branch 開發,我得到了解決此類問題的方法:

  1. 重置 git-town 配置以進行開發。
  2. 同步開發到功能子分支並解決沖突。
  3. 運送功能子分支。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM