28/56
Sign inSign up free

410. 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.

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.