I have read through the basics of the git book trying to linearize the branch red from with the branch blue got merged into. To easier review the history I try to have only one branch and no junction. What options do I have to do this and what is best?
This answer suggests to reset --soft
, but here demo assumes it grew a lot since the merge.
It is ok to have the branch blue changes be added to red before af
or preferably after 9c
commit.
* 5356e62 vimdiff solved
* c1ccf86 red forward
* 51fbd33 Merge branch 'blue' into red
|\
| * 96575dc new file
| * 1d7f531 some line and blue branch 3
* | 9cc3291 new file
* | 92569c6 another commit
* | f8d3ab2 blue branch 3
|/
* af8b651 init