【发布时间】:2014-11-22 15:26:23
【问题描述】:
假设我有三个分支:master、feature-A 和 feature-B。我已经向feature-A 分支添加了一些提交,并创建了一个等待代码审查的拉取请求。
现在我想在feature-B 上工作,但我想使用我在feature-A 中添加的代码。
那么,如果我这样做会不会造成任何问题:
- 从
master创建分支feature-A - 向
feature-A添加一些提交 - 从
master创建分支feature-B - 将
feature-A合并到feature-B - 向
feature-B添加一些提交 - 将
feature-A合并到master - 将
feature-B合并到master
Git 会理解我从feature-B 合并的一些提交已经在master 中吗?还是有更好的方法?
【问题讨论】:
标签: git github version-control merge git-merge