0

We have branch A, branch B, and branch C.

Currently I'm on branch C.

               A1 ----- A2
              /
             /  B1 -------- B2
            /  /
- M1 ----- M2 ------ M3 ---------------
            \
             C1 ---- C2
                      ^HEAD

Is it possible to merge branch A into branch B without leaving branch C?

Nick Volynkin
  • 14,023
  • 6
  • 43
  • 67
Alex Cory
  • 10,635
  • 10
  • 52
  • 62

1 Answers1

0

In git you would just go into either A or B, merge and go back to working on C again:

git checkout B
git merge A
git checkout C
Mattias
  • 1,110
  • 1
  • 11
  • 26