如何回复父母分支的父母?
从主人到特色分支。 从特色店分支机构到特色Branch
如何重新将功能B重新掌握为掌握,以便避免所有特征的参与。基本上可以将功能B重新掌握为从特色中脱颖而出的提交中的掌握吗?
Branched out from master to featureA branch.
from featureA branch, branched out to featureB branch
How to rebase the featureB to master such that, all commits of featureA are avoided. Basically rebase featureB to master from the commit where featureA was branched out from?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这听起来像是
git rebase的工作-Onto
:此外,
git-rebase
文档,本文对使用
- 在
flag上有很好的评论。如果我以
功能B
看起来像这样开始:然后运行:
功能B
更新以使其看起来像这样:This sounds like a job for
git rebase --onto
:In addition the the
git-rebase
documentation,this article has a good review of using the
--onto
flag.If I start with
featureB
looking like this:Then running:
Results in
featureB
updated to look like this:git rebase master featureb
应仅重新置换功能b->掌握同时完全避免出现特征。为了在执行此操作之前确认更改,您始终可以使用
-i
附加交互式标志。因此,完整命令看起来像:git rebase master featureb -i
git rebase master featureB
should only rebase featureB -> master while avoiding featureA completely.To confirm changes before you do this, you can always attach the interactive flag with
-i
. So the full command would look something like:git rebase master featureB -i