[英]Merge old branch to new branch GIT
我有两个分支,分别是旧分支(当前正在工作的分支)和新分支。 我想将旧分支提交更改推送到新分支。 这是我遵循的步骤:
Clone old branch and changed head and refs to new branch
then executed git cherry-pick --strategy=recursive -X theirs commit_name
After executing above command i see few lines +added and deleted
(The commit_name has 6 files)
在提交中,我仅看到3个通过插入和删除行已更正的文件,但是我看不到要推向gerrit的其余文件。
请有人在这里帮助我。 请注意,我不熟悉git的东西。
您可以将变基 :在新的分支执行git rebase old_branch
,如果解决任何冲突,你必须从old_branch在new_branch所有更改。 您也可以git merge old_branch
,它将执行相同的操作并创建其他合并提交。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.