git-learning-game / oh-my-git

An interactive Git learning game!
https://ohmygit.org
Other
2k stars 145 forks source link

Level Idea: Merge Rebasing #104

Open BenBE opened 3 years ago

BenBE commented 3 years ago

Let's assume the following layout:

A --> B -> C -> D -> E -> F (main)
  \         \ 
   \> G -----+> H -> I -> J (topic)

And D should be fix-up'd into B, with H merging in the new C', thus resulting in:

A --> B' --> C' --> E' --> F' (main)
  \           \ 
   \> G -------+--> H' --> I' --> J' (topic)

Level Complexity: intermediate/advanced (possible with both git reset+git merge+git cherry-pick or using git rebase -i.

Intended solution: Using git rebase with merge-preservation options.