[cherrypick流程]
有两个分支,一个是分支A,一个是分支B
现在要把分支A的一些commit提交到分支B
在分支A的工程路径下
git status
git log 查看A分支,之前的commit
commit 232212de1233
git checkout B 当前工程切换到B分支
git cherry-pick 232212de1233 将A分支中的232212de1233 commit 提交到B分支
git push origin B
有两个分支,一个是分支A,一个是分支B
现在要把分支A的一些commit提交到分支B
在分支A的工程路径下
git status
git log 查看A分支,之前的commit
commit 232212de1233
git checkout B 当前工程切换到B分支
git cherry-pick 232212de1233 将A分支中的232212de1233 commit 提交到B分支
git push origin B
本文介绍如何使用Git cherry-pick命令将一个分支的特定提交应用到另一个分支中。通过简单几步操作,即可轻松实现跨分支提交的移植,提高开发效率。
6万+

被折叠的 条评论
为什么被折叠?



