Skip to main content
Senior

Merge Many Features

Senior

Task

Combine two remote feature branches in the local main, and then publish the result.

Steps

  1. While on main, merge o/side1.
  2. Then merge o/side2.
  3. Push the updated main to origin.

Expected result

main must contain the changes of both branches and end with the final merge commit. The local main, o/main and the remote main must be in sync.

What you will learn

After completing this task you will be able to:

  • merge remote-tracking branches into the local main branch;
  • combine several lines of development one after another;
  • publish an already integrated result.
Goal
localC0C1C2o/side1C3o/side2C4HEAD main o/main
originC0C1C2side1C3side2C4HEAD main
Git trainer0 commands
terminal
localC0C1HEAD main o/mainC2o/side1C3o/side2
originC0C1HEAD mainC2side1C3side2