34/56
Sign inSign up free

794. Reorder Commits Before a Pull Request

hard 40 XP ~10 minHands-on lab

Your branch feature/search in /home/student/repos/billing-service (based on main, not pushed yet) has four commits, in this order:

  1. "Add search endpoint"
  2. "Add search index"
  3. "Fix typo in search endpoint"
  4. "Add search docs"

The endpoint needs the index, so reviewers want the index first, and the typo fix shouldn't be a commit of its own.

Task

Rewrite feature/search so that it has exactly three commits on top of main, in this order: "Add search index", "Add search endpoint" (with the typo fix folded into it), "Add search docs". The final files must be identical to now. main stays as it is.

About this machine

Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Your machine is ready to start

A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.

No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.