rebase, , git, " ", . , -: "" C D, C' D'. , "" ( , ). , ( , , : E B , D C, C B, B A):
A <-- B <-- E <-- master
^
\
C <-- D <-- hotfix
rebase, git cherry-picks commit C, C' E ; cherry-picks D, D' C' . ( ), . , , D', git hotfix, D':
A <-- B <-- E <-- master
^ ^
| \
C - D \
\
C' <-- D' <-- hotfix
commits, C D, ( , hotfix branch reflog , , rebase ORIG_HEAD, D). , , " hotfix", , .
, commit D' ( , , ). commit D reflog ORIG_HEAD, D D', , :
$ git diff ORIG_HEAD hotfix
. ( E, , , .)
( , , , diff , "". C E, C', git diffs B C. , cherry-pick D, git diffs C D, diff C' . , D E, D', , .)