git将某一个commit合并到其他分支

1、切换到目标分支

git checkout test

2、找到需要合并的某commit id,

git cherry-pick <commit-id>

3、完成

Categories: