拆分 Rebased 分支

Splitting Rebased Branches

我刚刚重新定位了我的 2 个分支:

发展--->精通

Here is my current structure

但是当我尝试创建另一个分支 (ui) 时,它并没有分裂。我想把它分开,这样我就可以清楚地表示我的提交流程。我该怎么做才能将它们拆分到不同的节点上。

如果一个分支直接在另一个分支之前(他们说 "the other is contained within the first")大多数工具会将两个分支绘制为一条线:

-*--*--*--*--*
       |     |
      dev   master

对于 "split" 他们,您需要向两个分支添加不相关(尚未合并)的提交:

        dev
         *
        /
-*--*--*
        \
         * master