I don't know if rebase
or merge
strategies or anything here is what I need or want.
The scenario
dev---*
\A------*------
\A2---------
ultimatly, I could just merge A2
into dev
. This is the end result, but, is there a way to merge A2
back into A
and basically replace or overwrite all the commits post A2
branch?
Why? As a teaching moment. I would really like to be able to show the diff between the "head" of A
vs A2
via viewing the merge or A2
into A
(all merges are done as --no-ff
)
clarification: it would be nice to see my git history like this
dev---* /---
\A------*------ -*
\A2---------/
so, the "merge" commit on A
when viewed in something like gitlab will show me the diff.
I am just being picky about how the GitLab repository "graph" will look, as well as the individual commit view. The changes.
Maybe I'll just do some experimenting with merging.
more clarification new question. considering this git history
dev---*
\A------*++++++
\A2---------
Can I merge A2
into A
completely overwriting all the +
commits, but keep them in the history?