我有一棵这样的树:
(commit 1) - master
\-- (commit 2) - (commit 3) - demo
\-- (commit 4) - (commit 5) - PRO
我必须将 PRO 分支移到 master
(commit 1) - master
|-- (commit 2) - (commit 3) - demo
\-- (commit 4) - (commit 5) - PRO
我已经尝试了git rebase master
来自 PRO 分支,但没有任何反应。
澄清一下:我在 master 工作,然后我不得不做一个产品演示(git checkout -b demo
和一些提交)。然后,我错误地从演示(git checkout -b PRO
和一些提交)创建了另一个分支,现在我需要将 PRO 分支移动到 master 并保持 demo 完好无损。最后,demo 和 PRO 都会挂在 master 上。