Instead of merging B (Branch) to A(Feature) I merged A(Feature) to B(Branch) in GIT LAB.
Here is a graphical representation of what I did.
I have this as below. With this the "Branch A2"
merges into "feature B2"
which is not what i intended.
ISSUE: Now if i continue development, the Branch that will have to continue on is "feature B2"
instead of "Branch A2"
Branch A ----A1------ A2 <-- last commit
\ \ (merge into feature)
Branch(feature) B -- -B1- - -- B2 <-- feature now contains Branch "A2" edits.
This is what I wanted. To merged "feature B2"
into "Branch A2"
; In this way when I continue my development it would be on the "Branch A2"
and not "feature B2"
Branch(feature) B ----B1------ B2 <-- last feature commit
\ \ (merge into Branch)
Branch A -- -A1- - -- A2 <-- Branch now contains "B2" feature edits.
What is the most clean way of fixing this so I can get Scenario 2 and continue working on "A2"
Branch branch instead of "B2"
feature branch?
Function wise, they both achieve the same thing whether you merged A2->B2 or B2->A2!
One way comes to mind is that I can rename the Merged branch and call it Branch A2