【发布时间】:2020-12-11 15:02:06
【问题描述】:
操作系统:Windows 10
Git 客户端:Git Bash(版本:2.28.0.windows.1)
...--A--B--C--D---E--I--M--N--O--P <-- Branch-A
\ \ /
\ F--G--H
\
J--K--L <-- Branch-B (HEAD)
问题陈述:
What I want to do is, Merge/Cherry-Pick commits (I .. P) to the branch (Branch-B)
我尝试过的:
我已经使用以下命令尝试了 git cherry-pick:
git cherry-pick I..P
但不是从提交 I 合并到 P。cherry-pick 正在从 I 到 A 执行(即在历史上倒退)。
任何解决方案?也欢迎樱桃挑选以外的解决方案。
【问题讨论】:
-
你能描述一下你是如何看到应用的提交是“I to A”的吗?
标签: git gitlab git-merge git-bash cherry-pick