Skip to main content
Senior

Push Many Features

Senior

Task

Three independent branches are prepared in the local repository. Publish each of them to origin.

Requirements

  • Push the side1 branch.
  • Push the side2 branch.
  • Push the side3 branch.
  • Do not rename the branches or merge them.

Expected result

The branches side1, side2 and side3 must appear on origin, each on the same commit as the corresponding local branch. The local remote-tracking pointers must be updated as well.

What you will learn

After completing this task you will be able to:

  • publish several independent branches;
  • explicitly choose the branch to push;
  • understand how o/<branch> pointers appear after a push.
Goal
localC0C1main o/mainC2side1 o/side1C3side2 o/side2C4HEAD side3 o/side3
originC0C1HEAD mainC2side1C3side2C4side3
Git trainer0 commands
terminal
localC0C1main o/mainC2side1C3side2C4HEAD side3
originC0C1HEAD main