标签: git merge branch commit git-cherry-pick
所以我有:
master +commit1 +commit2 +commit3 myBranch +commitA +commitB +commitC
我想在myBranch中选择commitB并将其合并到master分支,我该怎么办?
答案 0 :(得分:2)
git checkout master git cherry-pick commitB
甚至更好,git help cherry-pick并阅读。
git help cherry-pick