1. 切换到目标分支
git checkout <target-branch>
2. 从其他分支选择并应用单个提交
git cherry-pick <commit-hash>
3. 从其他分支选择并应用多个提交
git cherry-pick <commit-hash-1> <commit-hash-2> <commit-hash-3>
微信扫一扫
git checkout <target-branch>
git cherry-pick <commit-hash>
git cherry-pick <commit-hash-1> <commit-hash-2> <commit-hash-3>
相关推荐