Recover a Deleted Branch with reflog

medium 20 XP ~5 minHands-on lab

A teammate ran git branch -D retry-logic in /home/student/repos/data-pipeline to tidy up. The branch had two commits that were never merged or pushed anywhere.

Task

  • Recreate the branch retry-logic pointing at its last commit, so both of its commits are back.
  • Do not change main.

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.

TerminalNot started

Your machine is ready to start

Create a free account to open a machine and get graded.