FunctionRacerProblemsRace

Off the Wrong Branch

MediumGita shell script

The last two commits were made on main by mistake: they belong on a new branch, pricing. Move them. pricing ends where main ends now, main ends two commits earlier, and you end on pricing.

Example 1

starts as
* cd6d5af (HEAD -> main) more pricing
* b806536 start the pricing
* 44553c0 add b
* b527f18 first commit
nothing to commit
ends as
on branch: pricing
commits on main, newest first:
  add b
  first commit
commits on pricing, newest first:
  more pricing
  start the pricing
  add b
  first commit
staged: nothing
changed, not staged: nothing
untracked: nothing

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Git problems