如何使用 egit 将分支 A 的 PART 提交合并到分支 B?

How to merge PART commits of branch A to branch B with egit?

有两个分支,分支 A 和分支 B。以及每个分支中的一些提交,commit-a1,commit-a2,commit-b1 ...
如何仅使用 EGIT 将 commit-a2 从分支 A 合并到分支 B?

最快的解决方案是使用 git cherry-pick:

git checkout branch-B
git cherry-pick commit-a2

这会在分支 B 上进行新提交,更改与 commit-a2 相同。