git cherry-pick 用法

阅读 91

2023-07-13

1. 切换到目标分支

git checkout <target-branch>

2. 从其他分支选择并应用单个提交

git cherry-pick <commit-hash>

3. 从其他分支选择并应用多个提交

git cherry-pick <commit-hash-1> <commit-hash-2> <commit-hash-3>

相关推荐

精彩评论(0)

0 0 举报