1、合并其他分支某一次提交
首先通过git log,找到对应的commit ID。
然后通过git branch,找到对应的分支。
git checkout 切换分支,git cherry-pick commit ID。
2、合并其他分支的多次提交
commit id1 到 commit id2
git checkout -b 分支名 commit id2
git rebase --onto 合并的分支 commit id1
1、合并其他分支某一次提交
首先通过git log,找到对应的commit ID。
然后通过git branch,找到对应的分支。
git checkout 切换分支,git cherry-pick commit ID。
2、合并其他分支的多次提交
commit id1 到 commit id2
git checkout -b 分支名 commit id2
git rebase --onto 合并的分支 commit id1