Closed milindrao closed 8 years ago
Thanks. That makes sense.
But you used the phrase "rebase the feature branch on master". Is that the CVS/SVN term rebase which merges changes in master to the branch? Or the Git "rebase" which is rewrite the commit histories?
Or the Git "rebase" which is rewrite the commit histories?
That's the one I mean -- and, in general, merge
works just as well as rebase
or cherry-pick
-- the point we're trying to highlight in demonstrating cherry-pick
is a scenario where you want to bring exactly one commit, not a whole chain of commits.
In this scenario, we're imagining a developer working on a feature branch wants to have a single commit from the hotfix to continue their work on feature branch. It's probably not the most common scenario here -- I'd guess it's more common to
rebase
the feature branch onmaster
after a hotfix has been merged -- but it does come up in some environments.