Skip to main content
Senior

Git Push

Senior

Task

The repository is already cloned. Create two consecutive commits on main and push them to origin.

Requirements

  • Do not run clone again.
  • Make exactly two commits on main.
  • Publish both commits with a single push.

Expected result

The local main, the remote-tracking branch o/main and main on origin must all point to the second new commit.

What you will learn

After completing this task you will be able to:

  • accumulate several local commits before pushing;
  • publish a sequence of changes with push;
  • track the synchronization of the local and remote branches.
Goal
localC0C1C2C3HEAD main o/main
originC0C1C2C3HEAD main
Git trainer0 commands
terminal
localC0C1HEAD main o/main
originC0C1HEAD main