git cherry-pick

将现有提交的变更应用到当前分支。 如需应用到其他分支,请先用 git checkout 切换到目标分支。 更多信息:https://git-scm.com/docs/git-cherry-pick.

git cherry-pick {{提交哈希}}

git cherry-pick {{起始提交}}~..{{结束提交}}

git cherry-pick {{提交1 提交2 ...}}

git cherry-pick --no-commit {{提交哈希}}