WIP
Normal feature development at the moment we are ready to merge into master can be illustrated as follows:
C--M1--F--G--M2
/ / /
A--B--D---------H
A-B-D-H-C'-M1'-F'-G'
or
A-B-D-H-S'
where S'
is a squashed feature branch commits
The feature branch can then be deleted.
Also consider group-and-squash commits in feature
.
Risks: squashing merger commits, rebasing/cherry-picking merger commits.
WIP hypotheses
git checkout master
git cherry pick C^..M2
git checkout feature
git branch feature-backup
git rebase --onto master feature feature~20 # last 20 commits from feature
git rebase HEAD master
See also: